The TesterInit function of a Tester is called once before mojitos is ran. It is given a pointer pointer to the state pointer, that will then be passed directly to the two other functions.
The TesterInit function of a Tester is called once before mojitos is ran. It is given a pointer pointer to the state pointer, that will then be passed directly to the two other functions.
.Pp
The TesterReader function of a Tester is called everytime mojitos outputs something. It is given a pointer to the null-terminated string that was read on mojitos output.
The TesterReader function of a Tester is called everytime mojitos outputs something. It is given a pointer to the null-terminated string that was read on mojitos output.
.Pp
The TesterFinalizer function of a Tester is called once mojitos exits, and should return a non-zero value if the test failed (incorrect mojitos output), or 0 otherwise.
The TesterFinalizer function of a Tester is called once mojitos exits, and should return a non-zero value if the test failed (incorrect mojitos output), or 0 otherwise.
.Pp
.Pp
Notice how every function is also give a *context pointer. This pointer is the context property of the current Execution.
Notice how every function is also give a *context pointer. This pointer is the context property of the current Execution.