unit_threaded.light

This module is an attempt to alleviate compile times by including the bare minimum. The idea is that while the reporting usually done by unit-threaded is welcome, it only really matters when tests fail. Otherwise, no news is good news.

Likewise, naming and selecting tests are features used when certain tests fail. The usual way to run tests is to run all of them and be happy if they all pass.

This module makes it so that unit-threaded gets out of the way, and if needed the full features can be turned on at the cost of compiling much more slowly.

There aren't even any template constraints on the should functions to avoid imports as much as possible.

Members

Classes

TestCase
class TestCase
Undocumented in source.

Enums

isLikeAssociativeArray
eponymoustemplate isLikeAssociativeArray(T, K)
Undocumented in source.

Functions

check
void check(int numFuncCalls, string file, size_t line)
Undocumented in source. Be warned that the author may not have intended to support it.
checkCustom
void checkCustom(int numFuncCalls, string file, size_t line)
Undocumented in source. Be warned that the author may not have intended to support it.
fail
void fail(string output, string file, size_t line)
Undocumented in source. Be warned that the author may not have intended to support it.
mock
auto mock()
Undocumented in source. Be warned that the author may not have intended to support it.
mockStruct
auto mockStruct(T returns)
Undocumented in source. Be warned that the author may not have intended to support it.
runTests
int runTests(string[] args)
Undocumented in source. Be warned that the author may not have intended to support it.
shouldApproxEqual
void shouldApproxEqual(V value, E expected, string file, size_t line)
Undocumented in source. Be warned that the author may not have intended to support it.
shouldBeEmpty
void shouldBeEmpty(R rng, string file, size_t line)
Undocumented in source. Be warned that the author may not have intended to support it.
shouldBeFalse
void shouldBeFalse(E condition, string file, size_t line)
Undocumented in source. Be warned that the author may not have intended to support it.
shouldBeGreaterThan
void shouldBeGreaterThan(T t, U u, string file, size_t line)
Undocumented in source. Be warned that the author may not have intended to support it.
shouldBeIn
void shouldBeIn(T value, U container, string file, size_t line)
Undocumented in source. Be warned that the author may not have intended to support it.
shouldBeIn
void shouldBeIn(T value, U container, string file, size_t line)
Undocumented in source. Be warned that the author may not have intended to support it.
shouldBeNull
void shouldBeNull(T value, string file, size_t line)
Undocumented in source. Be warned that the author may not have intended to support it.
shouldBeSameJsonAs
void shouldBeSameJsonAs(string actual, string expected, string file, size_t line)
Undocumented in source. Be warned that the author may not have intended to support it.
shouldBeSameSetAs
void shouldBeSameSetAs(V value, E expected, string file, size_t line)
Undocumented in source. Be warned that the author may not have intended to support it.
shouldBeSmallerThan
void shouldBeSmallerThan(T t, U u, string file, size_t line)
Undocumented in source. Be warned that the author may not have intended to support it.
shouldBeTrue
void shouldBeTrue(E condition, string file, size_t line)
Undocumented in source. Be warned that the author may not have intended to support it.
shouldEqual
void shouldEqual(V value, E expected, string file, size_t line)
Undocumented in source. Be warned that the author may not have intended to support it.
shouldNotBeEmpty
void shouldNotBeEmpty(R rng, string file, size_t line)
Undocumented in source. Be warned that the author may not have intended to support it.
shouldNotBeIn
void shouldNotBeIn(T value, U container, string file, size_t line)
Undocumented in source. Be warned that the author may not have intended to support it.
shouldNotBeIn
void shouldNotBeIn(T value, U container, string file, size_t line)
Undocumented in source. Be warned that the author may not have intended to support it.
shouldNotBeNull
void shouldNotBeNull(T value, string file, size_t line)
Undocumented in source. Be warned that the author may not have intended to support it.
shouldNotBeSameSetAs
void shouldNotBeSameSetAs(V value, E expected, string file, size_t line)
Undocumented in source. Be warned that the author may not have intended to support it.
shouldNotEqual
void shouldNotEqual(V value, E expected, string file, size_t line)
Undocumented in source. Be warned that the author may not have intended to support it.
shouldNotThrow
void shouldNotThrow(E expr, string file, size_t line)
Undocumented in source. Be warned that the author may not have intended to support it.
shouldThrow
void shouldThrow(E expr, string file, size_t line)
Undocumented in source. Be warned that the author may not have intended to support it.
shouldThrowExactly
void shouldThrowExactly(E expr, string file, size_t line)
Undocumented in source. Be warned that the author may not have intended to support it.
shouldThrowWithMessage
void shouldThrowWithMessage(E expr, string msg, string file, size_t line)
Undocumented in source. Be warned that the author may not have intended to support it.
writelnUt
void writelnUt(T args)
Undocumented in source. Be warned that the author may not have intended to support it.

Interfaces

Output
interface Output
Undocumented in source.

Meta