Module: stdgo.testing.internal.testdeps
Overview
Package testdeps provides access to dependencies needed by test execution.
This package is imported by the generated main package, which passes TestDeps into testing.Main. This allows tests to use packages at run time without making those packages direct dependencies of package testing. Direct dependencies of package testing are harder to write tests for.
Index
-
function matchString( _pat:stdgo.GoString, _str:stdgo.GoString):{ _1:stdgo.Error; _0:Bool;}
-
function writeProfileTo( _name:stdgo.GoString, _w:stdgo.io.Writer, _debug:stdgo.GoInt):stdgo.Error
Variables
import stdgo.testing.internal.testdeps.Testdeps
var _log:stdgo.testing.internal.testdeps.T_testLog
var _matchPat:stdgo.GoString
var _matchRe:stdgo.Ref<stdgo.regexp.Regexp>
var importPath:stdgo.GoString
ImportPath is the import path of the testing binary, set by the generated main function.
Classes
import stdgo.testing.internal.testdeps.*
class TestDeps
TestDeps is an implementation of the testing.testDeps interface, suitable for passing to testing.MainStart.
TestDeps function new
function new():Void
TestDeps function checkCorpus
function checkCorpus( _vals:stdgo.Slice<stdgo.AnyInterface>, _types:stdgo.Slice<stdgo.reflect.Type_>):stdgo.Error
TestDeps function coordinateFuzzing
function coordinateFuzzing( _timeout:stdgo.time.Duration, _limit:stdgo.GoInt64, _minimizeTimeout:stdgo.time.Duration, _minimizeLimit:stdgo.GoInt64, _parallel:stdgo.GoInt, _seed:stdgo.Slice<{
values:stdgo.Slice<stdgo.AnyInterface>;
path:stdgo.GoString;
parent:stdgo.GoString;
isSeed:Bool;
generation:stdgo.GoInt;
data:stdgo.Slice<stdgo.GoUInt8>;
}>, _types:stdgo.Slice<stdgo.reflect.Type_>, _corpusDir:stdgo.GoString, _cacheDir:stdgo.GoString):stdgo.Error
TestDeps function importPath
function importPath():stdgo.GoString
TestDeps function matchString
function matchString( _pat:stdgo.GoString, _str:stdgo.GoString):{
_1:stdgo.Error;
_0:Bool;
}
TestDeps function readCorpus
function readCorpus( _dir:stdgo.GoString, _types:stdgo.Slice<stdgo.reflect.Type_>):{
_1:stdgo.Error;
_0:stdgo.Slice<{
values:stdgo.Slice<stdgo.AnyInterface>;
path:stdgo.GoString;
parent:stdgo.GoString;
isSeed:Bool;
generation:stdgo.GoInt;
data:stdgo.Slice<stdgo.GoUInt8>;
}>;
}
TestDeps function resetCoverage
function resetCoverage():Void
TestDeps function runFuzzWorker
function runFuzzWorker( _fn:()):stdgo.Error
TestDeps function setPanicOnExit0
function setPanicOnExit0( _v:Bool):Void
SetPanicOnExit0 tells the os package whether to panic on os.Exit(0).
TestDeps function snapshotCoverage
function snapshotCoverage():Void
TestDeps function startCPUProfile
function startCPUProfile( _w:stdgo.io.Writer):stdgo.Error
TestDeps function startTestLog
function startTestLog( _w:stdgo.io.Writer):Void
TestDeps function stopCPUProfile
function stopCPUProfile():Void
TestDeps function stopTestLog
function stopTestLog():stdgo.Error
TestDeps function writeProfileTo
function writeProfileTo( _name:stdgo.GoString, _w:stdgo.io.Writer, _debug:stdgo.GoInt):stdgo.Error