semitwist.util.unittests

Undocumented in source.

Public Imports

semitwist.util.reflect
public import semitwist.util.reflect : _deferAssert_ExprTypeOf = ExprTypeOf;

Members

Aliases

unittestSection_demangle
alias unittestSection_demangle = demangle
Undocumented in source.
unittestSection_mangledName
alias unittestSection_mangledName = mangledName
Undocumented in source.
unittestSemiTwistDLib
alias unittestSemiTwistDLib = unittestSection!"SemiTwistDLib_unittest"
Undocumented in source.

Functions

_deferAssert
bool _deferAssert(bool condResult)
Undocumented in source. Be warned that the author may not have intended to support it.
_deferAssertException
void _deferAssertException(Object thrown)
Undocumented in source. Be warned that the author may not have intended to support it.
_deferEnsure
bool _deferEnsure(T valueResult, bool condResult)
Undocumented in source. Be warned that the author may not have intended to support it.
_deferEnsureException
void _deferEnsureException(Object thrown)
Undocumented in source. Be warned that the author may not have intended to support it.
_deferEnsureThrows
void _deferEnsureThrows(Object thrown)
Undocumented in source. Be warned that the author may not have intended to support it.
assertPred
void assertPred(L lhs, R rhs, string msg, string file, size_t line)
Undocumented in source. Be warned that the author may not have intended to support it.
assertPred
void assertPred(L lhs, R rhs, string msg, string file, size_t line)
Undocumented in source. Be warned that the author may not have intended to support it.
assertPred
void assertPred(L lhs, R rhs, string msg, string file, size_t line)
Undocumented in source. Be warned that the author may not have intended to support it.
assertPred
void assertPred(L lhs, R rhs, E expected, string msg, string file, size_t line)
Undocumented in source. Be warned that the author may not have intended to support it.
assertPred
void assertPred(L lhs, R rhs, E expected, string msg, string file, size_t line)
Undocumented in source. Be warned that the author may not have intended to support it.
assertPred
void assertPred(T a)
Undocumented in source. Be warned that the author may not have intended to support it.
assertPred
void assertPred(T a, U b)
Undocumented in source. Be warned that the author may not have intended to support it.
assertPred
void assertPred(T args)
Undocumented in source. Be warned that the author may not have intended to support it.
flushAsserts
void flushAsserts()
Undocumented in source. Be warned that the author may not have intended to support it.
getAssertCount
uint getAssertCount()
Undocumented in source. Be warned that the author may not have intended to support it.
resetAssertCount
void resetAssertCount()
Undocumented in source. Be warned that the author may not have intended to support it.
unittestSection
string unittestSection(string sectionName, string unittestBody)

To be mixed in.

writeUnittestSection
void writeUnittestSection(string sectionName)
Undocumented in source. Be warned that the author may not have intended to support it.

Templates

deferAssert
template deferAssert(string condStr, string msg = "")

Sounds like a contradiction of terms, but this is just intended to allow unittests to output ALL failures instead of only outputting the first one and then stopping.

deferEnsure
template deferEnsure(string value, string condStr, string msg = "")
Undocumented in source.
deferEnsureThrows
template deferEnsureThrows(string stmtStr, TExpected, string msg = "")
Undocumented in source.

Variables

autoThrow
bool autoThrow;

This does not currently affect the defer* functions above.

Meta