mockgen.yaml 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. force: true
  2. goimports: goimports
  3. file-prefix: |
  4. This file was generated by running `go-mockgen` at the root of this repository.
  5. To add additional mocks to this or another package, add a new entry to the
  6. mockgen.yaml file in the root of this repository.
  7. mocks:
  8. # To generate a new mock struct from an interface definition, add a new value to this
  9. # list. Each item will need to supply two pieces of information:
  10. #
  11. # (1) First, you will need to give a target filename
  12. # (2) Second, you will need to supply a target import path and interface name. If the
  13. # set of interface definitions you are mocking are all from the same package, then
  14. # you can supply a `path` and `interfaces` key which take a string and string array,
  15. # respectively. If the set of interface definitions you are mocking come from multiple
  16. # import paths, you can supply a `sources` array, each item containing a `path` and
  17. # `interfaces` key.
  18. #
  19. # By convention, you should generate mocks next to the CONSUMER of an interface, not the
  20. # definition. It is NOT considered an anti-pattern to generate multiple mocks for the same
  21. # shared interface.
  22. #
  23. # By convention, the filename containing generated mocks should be `mocks_test.go`.
  24. - filename: internal/db/mocks_test.go
  25. sources:
  26. - path: gogs.io/gogs/internal/db
  27. interfaces:
  28. - LoginSourcesStore
  29. - LoginSourceFilesStore
  30. - LoginSourceFileStore
  31. - loginSourceFileStore
  32. - path: gogs.io/gogs/internal/auth
  33. interfaces:
  34. - Provider
  35. - filename: internal/route/lfs/mocks_test.go
  36. sources:
  37. - path: gogs.io/gogs/internal/db
  38. interfaces:
  39. - LFSStore
  40. - UsersStore
  41. - TwoFactorsStore
  42. - AccessTokensStore
  43. - RepositoriesStore
  44. - PermsStore