Skip to content

Commit

Permalink
database: remove FindLock from mock
Browse files Browse the repository at this point in the history
  • Loading branch information
jzelinskie committed Feb 14, 2019
1 parent f64bd11 commit dd91597
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions database/mock.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ type MockSession struct {
FctFindKeyValue func(key string) (string, bool, error)
FctLock func(name string, owner string, duration time.Duration, renew bool) (bool, time.Time, error)
FctUnlock func(name, owner string) error
FctFindLock func(name string) (string, time.Time, bool, error)
}

func (ms *MockSession) Commit() error {
Expand Down Expand Up @@ -220,13 +219,6 @@ func (ms *MockSession) Unlock(name, owner string) error {
panic("required mock function not implemented")
}

func (ms *MockSession) FindLock(name string) (string, time.Time, bool, error) {
if ms.FctFindLock != nil {
return ms.FctFindLock(name)
}
panic("required mock function not implemented")
}

// MockDatastore implements Datastore and enables overriding each available method.
// The default behavior of each method is to simply panic.
type MockDatastore struct {
Expand Down

0 comments on commit dd91597

Please sign in to comment.