Documentation ¶
Overview ¶
Package values provides an interface for generating values nolint: gosec
Index ¶
- func FloatVal() string
- func IntVal() string
- func UIntVal() string
- type Gen
- func (g *Gen) ArrayLen(maxLen int) int
- func (g *Gen) Bool() string
- func (g *Gen) Byte() string
- func (g *Gen) Complex128() string
- func (g *Gen) Complex64() string
- func (g *Gen) DecoratorIndex(length int) int
- func (g *Gen) DecoratorVal() bool
- func (g *Gen) Error() bool
- func (g *Gen) Float32() string
- func (g *Gen) Float64() string
- func (g *Gen) Int() string
- func (g *Gen) Int16() string
- func (g *Gen) Int32() string
- func (g *Gen) Int64() string
- func (g *Gen) Int8() string
- func (g *Gen) MapLen() int
- func (g *Gen) Rune() string
- func (g *Gen) String() string
- func (g *Gen) Type() string
- func (g *Gen) UInt() string
- func (g *Gen) UInt16() string
- func (g *Gen) UInt32() string
- func (g *Gen) UInt64() string
- func (g *Gen) UInt8() string
- func (g *Gen) UIntPtr() string
- type GenMock
- func (g *GenMock) ArrayLen(maxLen int) int
- func (g *GenMock) Bool() string
- func (g *GenMock) Byte() string
- func (g *GenMock) Complex128() string
- func (g *GenMock) Complex64() string
- func (g *GenMock) DecoratorIndex(length int) int
- func (g *GenMock) DecoratorVal() bool
- func (g *GenMock) Error() bool
- func (g *GenMock) Float32() string
- func (g *GenMock) Float64() string
- func (g *GenMock) Int() string
- func (g *GenMock) Int16() string
- func (g *GenMock) Int32() string
- func (g *GenMock) Int64() string
- func (g *GenMock) Int8() string
- func (g *GenMock) MapLen() int
- func (g *GenMock) Rune() string
- func (g *GenMock) String() string
- func (g *GenMock) Type() string
- func (g *GenMock) UInt() string
- func (g *GenMock) UInt16() string
- func (g *GenMock) UInt32() string
- func (g *GenMock) UInt64() string
- func (g *GenMock) UInt8() string
- func (g *GenMock) UIntPtr() string
- type IGen
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Gen ¶
type Gen struct{}
Gen IGen implementation
func (*Gen) DecoratorIndex ¶
DecoratorIndex returns random index for array length of decorators
func (*Gen) DecoratorVal ¶
DecoratorVal Indicates if a value should be used in the decorator spec
type GenMock ¶
GenMock mocks the basic lit generator
func (*GenMock) Complex128 ¶
Complex128 returns complex128 value
func (*GenMock) DecoratorIndex ¶
DecoratorIndex returns decorator index for given length
func (*GenMock) DecoratorVal ¶
DecoratorVal returns if decorator value
type IGen ¶
type IGen interface { Bool() string String() string Type() string Int() string Int8() string Int16() string Int32() string Int64() string UInt() string UInt8() string UInt16() string UInt32() string UInt64() string UIntPtr() string Byte() string Rune() string Float32() string Float64() string Complex64() string Complex128() string Error() bool DecoratorVal() bool DecoratorIndex(length int) int ArrayLen(maxLen int) int MapLen() int }
IGen the value generator interface
Click to show internal directories.
Click to hide internal directories.