Selftester.requireHead

Checks that the head of the last message received matches that of the passed string, and throws if it does not.

struct Selftester
void
requireHead
(
const string tokenedExpected
,
const string file = __FILE__
,
const size_t line = __LINE__
)

Parameters

tokenedExpected string

The expected head, which may include some replace-tokens.

file string

The file the test is in.

line size_t

The line the test is on.

Throws

Exception if the head of the last message received does not match the expected string.