MockStore is a mock implementation of the Store interface (from the package gogs.io/gogs/internal/route/lfs) used for unit testing.
| 17 | // MockStore is a mock implementation of the Store interface (from the |
| 18 | // package gogs.io/gogs/internal/route/lfs) used for unit testing. |
| 19 | type MockStore struct { |
| 20 | // AuthenticateUserFunc is an instance of a mock function object |
| 21 | // controlling the behavior of the method AuthenticateUser. |
| 22 | AuthenticateUserFunc *StoreAuthenticateUserFunc |
| 23 | // AuthorizeRepositoryAccessFunc is an instance of a mock function |
| 24 | // object controlling the behavior of the method |
| 25 | // AuthorizeRepositoryAccess. |
| 26 | AuthorizeRepositoryAccessFunc *StoreAuthorizeRepositoryAccessFunc |
| 27 | // CreateLFSObjectFunc is an instance of a mock function object |
| 28 | // controlling the behavior of the method CreateLFSObject. |
| 29 | CreateLFSObjectFunc *StoreCreateLFSObjectFunc |
| 30 | // CreateUserFunc is an instance of a mock function object controlling |
| 31 | // the behavior of the method CreateUser. |
| 32 | CreateUserFunc *StoreCreateUserFunc |
| 33 | // GetAccessTokenBySHA1Func is an instance of a mock function object |
| 34 | // controlling the behavior of the method GetAccessTokenBySHA1. |
| 35 | GetAccessTokenBySHA1Func *StoreGetAccessTokenBySHA1Func |
| 36 | // GetLFSObjectByOIDFunc is an instance of a mock function object |
| 37 | // controlling the behavior of the method GetLFSObjectByOID. |
| 38 | GetLFSObjectByOIDFunc *StoreGetLFSObjectByOIDFunc |
| 39 | // GetLFSObjectsByOIDsFunc is an instance of a mock function object |
| 40 | // controlling the behavior of the method GetLFSObjectsByOIDs. |
| 41 | GetLFSObjectsByOIDsFunc *StoreGetLFSObjectsByOIDsFunc |
| 42 | // GetRepositoryByNameFunc is an instance of a mock function object |
| 43 | // controlling the behavior of the method GetRepositoryByName. |
| 44 | GetRepositoryByNameFunc *StoreGetRepositoryByNameFunc |
| 45 | // GetUserByIDFunc is an instance of a mock function object controlling |
| 46 | // the behavior of the method GetUserByID. |
| 47 | GetUserByIDFunc *StoreGetUserByIDFunc |
| 48 | // GetUserByUsernameFunc is an instance of a mock function object |
| 49 | // controlling the behavior of the method GetUserByUsername. |
| 50 | GetUserByUsernameFunc *StoreGetUserByUsernameFunc |
| 51 | // IsTwoFactorEnabledFunc is an instance of a mock function object |
| 52 | // controlling the behavior of the method IsTwoFactorEnabled. |
| 53 | IsTwoFactorEnabledFunc *StoreIsTwoFactorEnabledFunc |
| 54 | // TouchAccessTokenByIDFunc is an instance of a mock function object |
| 55 | // controlling the behavior of the method TouchAccessTokenByID. |
| 56 | TouchAccessTokenByIDFunc *StoreTouchAccessTokenByIDFunc |
| 57 | } |
| 58 | |
| 59 | // NewMockStore creates a new mock of the Store interface. All methods |
| 60 | // return zero values for all results, unless overwritten. |
nothing calls this directly
no outgoing calls
no test coverage detected