diff options
author | ᴜɴᴋɴᴡᴏɴ <u@gogs.io> | 2020-04-06 18:35:10 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-06 18:35:10 +0800 |
commit | ee0ea2c5fc9f470512acf3f15834f14f8df9d737 (patch) | |
tree | 077bbea20818621e98d3a46ab01c0be235c2d25c /internal/gitutil | |
parent | 4d7db6e1c108cee234422b34e3252ab217c461cc (diff) |
lfs: add unit test for middleware (#6070)
* Add unit test for `authenticate` middleware
* Add more cases
* Add tests for verifyOID and internalServerError
* Add tests for verifyHeader
* Add tests for authroize
Diffstat (limited to 'internal/gitutil')
-rw-r--r-- | internal/gitutil/mocks.go (renamed from internal/gitutil/mock.go) | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/internal/gitutil/mock.go b/internal/gitutil/mocks.go index 161d4474..b58fa079 100644 --- a/internal/gitutil/mock.go +++ b/internal/gitutil/mocks.go @@ -12,7 +12,6 @@ import ( var _ ModuleStore = (*MockModuleStore)(nil) -// MockModuleStore is a mock implementation of ModuleStore interface. type MockModuleStore struct { repoAddRemote func(repoPath, name, url string, opts ...git.AddRemoteOptions) error repoDiffNameOnly func(repoPath, base, head string, opts ...git.DiffNameOnlyOptions) ([]string, error) |