#include "interface.h"
#include "consumer.h"
#include <iostream>
#include <cstdlib>
Go to the source code of this file.
Classes | |
class | PoorMock |
Defines | |
#define | ASSERTER(x) |
Quick-n-dirty asserter. | |
Functions | |
int | main (int, char **) |
#define ASSERTER | ( | x | ) |
if (!(x) ) { \ MOCKPP_STD_NS::cout << MOCKPP_STD_NS::endl \ << "Error occured.\n" << #x << MOCKPP_STD_NS::endl \ << MOCKPP_STD_NS::endl \ << MOCKPP_STD_NS::flush; \ exit(1); \ }
Quick-n-dirty asserter.
If the condition fails the condition is printed and the application terminates immediately.
Definition at line 28 of file poormock.cpp.
Referenced by main().
int main | ( | int | , | |
char ** | ||||
) |
Definition at line 85 of file poormock.cpp.
References ASSERTER, PoorMock::close_counter, Consumer::load(), PoorMock::open_counter, Consumer::process(), PoorMock::read_counter, Consumer::save(), and PoorMock::write_counter.