Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConstGenerator ¶
type ConstGenerator struct {
// contains filtered or unexported fields
}
ConstGenerator is a mocked uuid generator, which always generate a pre defined uuid
func NewConstGenerator ¶
func NewConstGenerator(uid string) *ConstGenerator
NewConstGenerator creates a new ConstGenerator instance
func (*ConstGenerator) NewString ¶
func (g *ConstGenerator) NewString() string
NewString implements Generator.NewString
type Generator ¶
type Generator interface {
NewString() string
}
Generator defines an interface that can generate a uuid
type MockGenerator ¶
type MockGenerator struct {
// contains filtered or unexported fields
}
MockGenerator is a mocked uuid generator
func (*MockGenerator) NewString ¶
func (g *MockGenerator) NewString() (ret string)
NewString implements Generator.NewString
func (*MockGenerator) Push ¶
func (g *MockGenerator) Push(uuid string)
Push adds a candidate uuid in FIFO list
Click to show internal directories.
Click to hide internal directories.