Documentation
¶
Overview ¶
Internal package used to check if functions work correctly by dataset. It is necessary because when testing functions with a variable number of arguments starting with four arguments, it is impossible to conduct testing on the entire range of input argument values in automatic mode in an acceptable time.
Index ¶
- Variables
- func Collect[Type types.UpToI32](opts Opts[Type], writer io.Writer) error
- func CollectToFile[Type types.UpToI32](opts Opts[Type], path string) error
- func Inspect[Type types.UpToI32](inspected types.Inspected[Type, Type], reader io.Reader) (types.Result[Type, Type, int64], error)
- func InspectFromFile[Type types.UpToI32](inspected types.Inspected[Type, Type], path string) (types.Result[Type, Type, int64], error)
- func WriteItem[Type types.UpToI32](writer io.Writer, reference types.Reference[int64], args ...Type) error
- type Opts
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotEnoughDataInFillers = errors.New("not enough data from the fillers to form a dataset") ErrNotEnoughDataInItem = errors.New("not enough data in dataset item") ErrReaderNotSpecified = errors.New("reader is not specified") ErrWriterNotSpecified = errors.New("writer is not specified") )
Functions ¶
func CollectToFile ¶ added in v0.20.3
Performs collecting dataset to file.
func Inspect ¶ added in v0.20.3
func Inspect[Type types.UpToI32]( inspected types.Inspected[Type, Type], reader io.Reader, ) (types.Result[Type, Type, int64], error)
Performs inspecting with dataset from reader.
Types ¶
type Opts ¶ added in v0.20.3
type Opts[Type types.UpToI32] struct { // Quantity of arguments for inspected and reference functions ArgsQuantity int // Quantity of dataset items which not produce overflow of inspected function NotOverflowedItemsQuantity int // Quantity of dataset items which produce overflow of inspected function OverflowedItemsQuantity int // Function that returns a reference value types.Reference[int64] // Quantity limits for reference values ReferenceLimits map[int64]uint // List of fillers that fill arguments of dataset item (reference function) by // values. If not specified will be used filler [filler.Set] with // [filler.Boundaries] setter and filler [filler.Rand] Fillers []filler.Filler[Type] }
Options of collecting. A reference function must be specified.
Click to show internal directories.
Click to hide internal directories.