go2hx

manual

github

Module: stdgo.testing

(view library index)

Overview

Index

Functions

import stdgo.testing.Testing

function allocsPerRun

function allocsPerRun(_runs:stdgo.GoInt, f:():Void):stdgo.GoFloat64

(view code)

function benchmark

function benchmark(f:()):stdgo.testing.BenchmarkResult

(view code)

function coverMode

function coverMode():stdgo.GoString

(view code)

function mainStart

function mainStart(deps:stdgo.testing.T_testDeps, tests:stdgo.Slice<stdgo.testing.InternalTest>, benchmarks:stdgo.Slice<stdgo.testing.InternalBenchmark>, _0:Any, ?_1:Any):stdgo.testing.M

(view code)

function short

function short():Bool

(view code)

function testing

function testing():Bool

(view code)

function verbose

function verbose():Bool

(view code)

Classes

import stdgo.testing.*

class B

var n:stdgo.GoInt

B function cleanup

function cleanup(f:():Void):Void

(view code)

B function error

function error(args:haxe.Rest<stdgo.AnyInterface>):Void

(view code)

B function errorf

function errorf(format:stdgo.GoString, args:haxe.Rest<stdgo.AnyInterface>):Void

(view code)

B function fail

function fail():Void

(view code)

B function failNow

function failNow():Void

(view code)

B function failed

function failed():Bool

(view code)

B function fatal

function fatal(args:haxe.Rest<stdgo.AnyInterface>):Void

(view code)

B function fatalf

function fatalf(format:stdgo.GoString, args:haxe.Rest<stdgo.AnyInterface>):Void

(view code)

B function helper

function helper():Void

(view code)

B function log

function log(args:haxe.Rest<stdgo.AnyInterface>):Void

(view code)

B function logf

function logf(format:stdgo.GoString, args:haxe.Rest<stdgo.AnyInterface>):Void

(view code)

B function name

function name():stdgo.GoString

(view code)

B function new

function new(?n:stdgo.GoInt):Void

(view code)

B function reportAllocs

function reportAllocs():Void

(view code)

B function reportMetric

function reportMetric(n:stdgo.GoFloat64, uint:stdgo.GoString):Void

(view code)

B function resetTimer

function resetTimer():Void

(view code)

B function run

function run(name:stdgo.GoString, f:()):Bool

(view code)

B function runParallel

function runParallel(body:()):Null<Dynamic>

(view code)

B function setBytes

function setBytes(n:stdgo.GoInt64):Void

(view code)

B function setParallelism

function setParallelism(p:stdgo.GoInt):Void

(view code)

B function setenv

function setenv(key:stdgo.GoString, value:stdgo.GoString):Void

(view code)

B function skip

function skip(args:haxe.Rest<stdgo.AnyInterface>):Void

(view code)

B function skipNow

function skipNow():Void

(view code)

B function skipf

function skipf(format:stdgo.GoString, args:haxe.Rest<stdgo.AnyInterface>):Void

(view code)

B function skipped

function skipped():Bool

(view code)

B function startTimer

function startTimer():Void

(view code)

B function stopTimer

function stopTimer():Void

(view code)

B function tempDir

function tempDir():stdgo.GoString

(view code)

class BenchmarkResult

var bytes:stdgo.GoInt64
var extra:stdgo.GoMap<stdgo.GoString, stdgo.GoFloat64>
var memAllocs:stdgo.GoUInt64
var memBytes:stdgo.GoUInt64
var n:stdgo.GoInt
var t:Dynamic

BenchmarkResult function allocedBytesPerOp

function allocedBytesPerOp():stdgo.GoInt64

(view code)

BenchmarkResult function allocsPerOp

function allocsPerOp():stdgo.GoInt64

(view code)

BenchmarkResult function memString

function memString():stdgo.GoString

(view code)

BenchmarkResult function new

function new(?n:stdgo.GoInt, ?t:Dynamic, ?bytes:stdgo.GoInt64, ?memAllocs:stdgo.GoUInt64, ?memBytes:stdgo.GoUInt64, ?extra:stdgo.GoMap<stdgo.GoString, stdgo.GoFloat64>):Void

(view code)

BenchmarkResult function nsPerOp

function nsPerOp():stdgo.GoInt64

(view code)

BenchmarkResult function string

function string():stdgo.GoString

(view code)

class F

F function cleanup

function cleanup(f:():Void):Void

(view code)

F function error

function error(args:haxe.Rest<stdgo.AnyInterface>):Void

(view code)

F function errorf

function errorf(format:stdgo.GoString, args:haxe.Rest<stdgo.AnyInterface>):Void

(view code)

F function fail

function fail():Void

(view code)

F function failNow

function failNow():Void

(view code)

F function failed

function failed():Bool

(view code)

F function fatal

function fatal(args:haxe.Rest<stdgo.AnyInterface>):Void

(view code)

F function fatalf

function fatalf(format:stdgo.GoString, args:haxe.Rest<stdgo.AnyInterface>):Void

(view code)

F function fuzz

function fuzz(_ff:stdgo.AnyInterface):Void

(view code)

F function helper

function helper():Void

(view code)

F function log

function log(args:haxe.Rest<stdgo.AnyInterface>):Void

(view code)

F function logf

function logf(format:stdgo.GoString, args:haxe.Rest<stdgo.AnyInterface>):Void

(view code)

F function new

function new(output:StringBuf):Void

(view code)

F function parallel

function parallel():Void

(view code)

F function run

function run(name:stdgo.GoString, f:()):Bool

(view code)

F function setenv

function setenv(key:stdgo.GoString, value:stdgo.GoString):Void

(view code)

F function skip

function skip(args:haxe.Rest<stdgo.AnyInterface>):Void

(view code)

F function skipNow

function skipNow():Void

(view code)

F function skipf

function skipf(format:stdgo.GoString, args:haxe.Rest<stdgo.AnyInterface>):Void

(view code)

F function skipped

function skipped():Bool

(view code)

F function tempDir

function tempDir():stdgo.GoString

(view code)

class InternalBenchmark

var name:stdgo.GoString

InternalBenchmark function f

function f()

InternalBenchmark function new

function new(?name:stdgo.GoString, ?f:()):Void

(view code)

class InternalExample

var name:stdgo.GoString
var output:stdgo.GoString
var unordered:Bool

InternalExample function f

function f():Void

InternalExample function new

function new(?name:stdgo.GoString, ?f:():Void, ?output:stdgo.GoString, ?unordered:Bool):Void

(view code)

class InternalFuzzTarget

var name:stdgo.GoString

InternalFuzzTarget function f

function f():Void

InternalFuzzTarget function new

function new(?name:stdgo.GoString, ?f:():Void):Void

(view code)

class InternalTest

var name:stdgo.GoString

InternalTest function f

function f()

InternalTest function new

function new(?name:stdgo.GoString, ?f:()):Void

(view code)

class M

var chatty:Bool

M function new

function new(deps:stdgo.testing.T_testDeps, tests:stdgo.Slice<stdgo.testing.InternalTest>, benchmarks:stdgo.Slice<stdgo.testing.InternalBenchmark>, examples:stdgo.Slice<stdgo.testing.InternalExample>):Void

(view code)

M function run

function run():stdgo.GoInt

(view code)

class PB

PB function new

function new():Void

(view code)

PB function next

function next():Bool

(view code)

class T_

T_ function cleanup

function cleanup(f:():Void):Void

(view code)

T_ function error

function error(args:haxe.Rest<stdgo.AnyInterface>):Void

(view code)

T_ function errorf

function errorf(format:stdgo.GoString, args:haxe.Rest<stdgo.AnyInterface>):Void

(view code)

T_ function fail

function fail():Void

(view code)

T_ function failNow

function failNow():Void

(view code)

T_ function failed

function failed():Bool

(view code)

T_ function fatal

function fatal(args:haxe.Rest<stdgo.AnyInterface>):Void

(view code)

T_ function fatalf

function fatalf(format:stdgo.GoString, args:haxe.Rest<stdgo.AnyInterface>):Void

(view code)

T_ function helper

function helper():Void

(view code)

T_ function log

function log(args:haxe.Rest<stdgo.AnyInterface>):Void

(view code)

T_ function logf

function logf(format:stdgo.GoString, args:haxe.Rest<stdgo.AnyInterface>):Void

(view code)

T_ function name

function name():stdgo.GoString

(view code)

T_ function new

function new(?output:StringBuf):Void

(view code)

T_ function parallel

function parallel():Void

(view code)

T_ function run

function run(name:stdgo.GoString, f:()):Bool

(view code)

T_ function setenv

function setenv(key:stdgo.GoString, value:stdgo.GoString):Void

(view code)

T_ function skip

function skip(args:haxe.Rest<stdgo.AnyInterface>):Void

(view code)

T_ function skipNow

function skipNow():Void

(view code)

T_ function skipf

function skipf(format:stdgo.GoString, args:haxe.Rest<stdgo.AnyInterface>):Void

(view code)

T_ function skipped

function skipped():Bool

(view code)

T_ function tempDir

function tempDir():stdgo.GoString

(view code)

Typedefs

import stdgo.testing.*

typedef TB

typedef TB = {
	public function tempDir():stdgo.GoString;
	public function skipped():Bool;
	public function skipf(_format:stdgo.GoString, _args:haxe.Rest<stdgo.AnyInterface>):Void;
	public function skipNow():Void;
	public function skip(_args:haxe.Rest<stdgo.AnyInterface>):Void;
	public function setenv(_key:stdgo.GoString, _value:stdgo.GoString):Void;
	public function name():stdgo.GoString;
	public function logf(_format:stdgo.GoString, _args:haxe.Rest<stdgo.AnyInterface>):Void;
	public function log(_args:haxe.Rest<stdgo.AnyInterface>):Void;
	public function helper():Void;
	public function fatalf(_format:stdgo.GoString, _args:haxe.Rest<stdgo.AnyInterface>):Void;
	public function fatal(_args:haxe.Rest<stdgo.AnyInterface>):Void;
	public function failed():Bool;
	public function failNow():Void;
	public function fail():Void;
	public function errorf(_format:stdgo.GoString, _args:haxe.Rest<stdgo.AnyInterface>):Void;
	public function error(_args:haxe.Rest<stdgo.AnyInterface>):Void;
	public function cleanup(_0:():Void):Void;
};

typedef T_corpusEntry

typedef T_corpusEntry = {
	values:stdgo.Slice<stdgo.AnyInterface>;
	path:stdgo.GoString;
	parent:stdgo.GoString;
	isSeed:Bool;
	generation:stdgo.GoInt;
	data:stdgo.Slice<stdgo.GoUInt8>;
};

typedef T_testDeps

typedef T_testDeps = {
	public function writeProfileTo(_0:stdgo.GoString, _1:stdgo.io.Writer, _2:stdgo.GoInt):stdgo.Error;
	public function stopTestLog():stdgo.Error;
	public function stopCPUProfile():Void;
	public function startTestLog(_0:stdgo.io.Writer):Void;
	public function startCPUProfile(_0:stdgo.io.Writer):stdgo.Error;
	public function snapshotCoverage():Void;
	public function setPanicOnExit0(_0:Bool):Void;
	public function runFuzzWorker(_0:()):stdgo.Error;
	public function resetCoverage():Void;
	public function readCorpus(_0:stdgo.GoString, _1:stdgo.Slice<stdgo.reflect.Type_>):{
		_1:stdgo.Error;
		_0:stdgo.Slice<stdgo.testing.T_corpusEntry>;
	};
	public function matchString(_pat:stdgo.GoString, _str:stdgo.GoString):{
		_1:stdgo.Error;
		_0:Bool;
	};
	public function importPath():stdgo.GoString;
	public function coordinateFuzzing(_0:Dynamic, _1:stdgo.GoInt64, _2:Dynamic, _3:stdgo.GoInt64, _4:stdgo.GoInt, _5:stdgo.Slice<stdgo.testing.T_corpusEntry>, _6:stdgo.Slice<stdgo.reflect.Type_>, _7:stdgo.GoString, _8:stdgo.GoString):stdgo.Error;
	public function checkCorpus(_0:stdgo.Slice<stdgo.AnyInterface>, _1:stdgo.Slice<stdgo.reflect.Type_>):stdgo.Error;
};