| 40 | // Mocking out misc things ------------------------------------------------ |
| 41 | |
| 42 | class AcmeModule : public Module { |
| 43 | public: |
| 44 | AcmeModule() : Module() {} |
| 45 | |
| 46 | static const gate_idx_t kNumIGates = 1; |
| 47 | static const gate_idx_t kNumOGates = 2; |
| 48 | |
| 49 | static const Commands cmds; |
| 50 | |
| 51 | CommandResponse Init(const bess::pb::EmptyArg &) { return CommandResponse(); } |
| 52 | |
| 53 | CommandResponse FooPb(const bess::pb::EmptyArg &) { |
| 54 | n += 1; |
| 55 | return CommandResponse(); |
| 56 | } |
| 57 | |
| 58 | int n = {}; |
| 59 | }; |
| 60 | |
| 61 | const Commands AcmeModule::cmds = {{"foo", "EmptyArg", |
| 62 | MODULE_CMD_FUNC(&AcmeModule::FooPb), |
nothing calls this directly
no outgoing calls
no test coverage detected