Skip to content

Commit

Permalink
delete unncessary code
Browse files Browse the repository at this point in the history
Signed-off-by: hlts2 <hiroto.funakoshi.hiroto@gmail.com>
  • Loading branch information
hlts2 committed Sep 7, 2020
1 parent cd08e5b commit 73532eb
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions internal/db/storage/blob/s3/writer/mock_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,22 +37,3 @@ func (m *MockWriteCloser) Write(p []byte) (n int, err error) {
func (m *MockWriteCloser) Close() error {
return m.CloseFunc()
}

// MockGroup represents mock of errorgroup.Group.
type MockGroup struct {
GoFunc func(func() error)
LimitationFunc func(int)
WaitFunc func() error
}

func (m *MockGroup) Go(f func() error) {
m.GoFunc(f)
}

func (m *MockGroup) Limitation(n int) {
m.LimitationFunc(n)
}

func (m *MockGroup) Wait() error {
return m.WaitFunc()
}

0 comments on commit 73532eb

Please sign in to comment.