Refactor id generator to it's own package
This commit is contained in:
12
id/mock.go
Normal file
12
id/mock.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package id
|
||||
|
||||
import "github.com/stretchr/testify/mock"
|
||||
|
||||
type MockGenerator struct {
|
||||
mock.Mock
|
||||
}
|
||||
|
||||
func (m *MockGenerator) NewId() string {
|
||||
args := m.Called()
|
||||
return args.String(0)
|
||||
}
|
||||
Reference in New Issue
Block a user