MCPcopy Create free account
hub / github.com/NetSys/bess / AcmeModule

Class AcmeModule

core/module_test.cc:42–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40// Mocking out misc things ------------------------------------------------
41
42class 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
61const Commands AcmeModule::cmds = {{"foo", "EmptyArg",
62 MODULE_CMD_FUNC(&AcmeModule::FooPb),

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected