Skip to main content

Module testing

Module testing 

Source

Structs§

B
M
Go’s *testing.M — the value TestMain receives and calls .Run() on.
RegisteredTest
A test registered by the test! macro. inventory::submit! stores one of these per test at link time; M::Run() walks the whole list.
T

Functions§

AllocsPerRun
testing.AllocsPerRun(runs, f) — stub returning 0 in v0.4. Rust has no stable allocator introspection; tests that depend on this value should use if testing::AllocsPerRun(...) == 0.0 guards or skip.
Short
Verbose