MCPcopy Create free account
hub / github.com/cpputest/cpputest / DummyPlugin

Class DummyPlugin

tests/CppUTest/PluginTest.cpp:39–63  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37static int sequenceNumber;
38
39class DummyPlugin: public TestPlugin
40{
41public:
42 DummyPlugin(const SimpleString& name) :
43 TestPlugin(name), preAction(0), preActionSequence(0), postAction(0), postActionSequence(0)
44 {
45 }
46
47 virtual void preTestAction(UtestShell&, TestResult&)
48 {
49 preAction++;
50 preActionSequence = sequenceNumber++;
51 }
52
53 virtual void postTestAction(UtestShell&, TestResult&)
54 {
55 postAction++;
56 postActionSequence = sequenceNumber++;
57 }
58
59 int preAction;
60 int preActionSequence;
61 int postAction;
62 int postActionSequence;
63};
64
65class DummyPluginWhichAcceptsParameters: public DummyPlugin
66{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected