Add tests coverage report generation
[command.git] / tests / callable / TestCallableFunctionPointer.h
1 #include "callable.h"
2
3 using namespace command;
4
5 template<typename ArgumentType>
6 class TestCallable : public Callable<ArgumentType> {
7 public:
8     TestCallable(void (*function)(ArgumentType))
9         : Callable<ArgumentType>(function) {
10     }
11
12     void callFunction(ArgumentType test) {
13         this->call(test);
14     }
15 };
16
17 template<>
18 class TestCallable<void> : public Callable<void> {
19 public:
20     TestCallable(void (*function)(void))
21         : Callable<void>(function) {
22     }
23
24     void callFunction() {
25         this->call();
26     }
27 };