Package slicetest provides utilities for testing Bigslice user code. The utilities here are generally not optimized for performance or robustness; they are strictly intended for unit testing.
Run evaluates the provided slice in local execution mode, returning a scanner for the result. Errors are reported as fatal to the provided t instance. Run is intended for unit testing of Slice implementations.
RunAndScan evaluates the provided slice and scans its results into the provided slice pointers. Errors are reported as fatal to the provided t instance.
RunErr evaluates the provided slice in local execution mode and returns the error, if any.
ScanAll scans all entries from the scanner into the provided columns, which must be pointers to slices of the correct column types. For example, to read all values for a Slice<int, string>:
var ( ints int strings string ) ScanAll(test, scan, &ints, &strings)
Errors are reported as fatal to the provided t instance.