go2hx

manual

github

Module: stdgo.testing.internal.testdeps

(view library index)

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

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

(view code)

TestDeps function checkCorpus

function checkCorpus( _vals:stdgo.Slice<stdgo.AnyInterface>, _types:stdgo.Slice<stdgo.reflect.Type_>):stdgo.Error

(view code)

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

(view code)

TestDeps function importPath

function importPath():stdgo.GoString

(view code)

TestDeps function matchString

function matchString( _pat:stdgo.GoString, _str:stdgo.GoString):{
	_1:stdgo.Error;
	_0:Bool;
}

(view code)

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>;
	}>;
}

(view code)

TestDeps function resetCoverage

function resetCoverage():Void

(view code)

TestDeps function runFuzzWorker

function runFuzzWorker( _fn:()):stdgo.Error

(view code)

TestDeps function setPanicOnExit0

function setPanicOnExit0( _v:Bool):Void

SetPanicOnExit0 tells the os package whether to panic on os.Exit(0).

(view code)

TestDeps function snapshotCoverage

function snapshotCoverage():Void

(view code)

TestDeps function startCPUProfile

function startCPUProfile( _w:stdgo.io.Writer):stdgo.Error

(view code)

TestDeps function startTestLog

function startTestLog( _w:stdgo.io.Writer):Void

(view code)

TestDeps function stopCPUProfile

function stopCPUProfile():Void

(view code)

TestDeps function stopTestLog

function stopTestLog():stdgo.Error

(view code)

TestDeps function writeProfileTo

function writeProfileTo( _name:stdgo.GoString, _w:stdgo.io.Writer, _debug:stdgo.GoInt):stdgo.Error

(view code)