Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TestUuidGenerator ¶
type TestUuidGenerator struct {
// contains filtered or unexported fields
}
TestUuidGenerator is a [UuidGenerator] implementation allowing deterministic generations (for testing).
func NewTestUuidGenerator ¶
func NewTestUuidGenerator(value string) *TestUuidGenerator
NewTestUuidGenerator returns a TestUuidGenerator, implementing [UuidGenerator].
It accepts a value that will be used for deterministic generation results.
func (*TestUuidGenerator) Generate ¶
func (g *TestUuidGenerator) Generate() string
Generate returns the configured deterministic value.
func (*TestUuidGenerator) SetValue ¶
func (g *TestUuidGenerator) SetValue(value string) *TestUuidGenerator
SetValue sets the value to use for deterministic generations.
Click to show internal directories.
Click to hide internal directories.