MCPcopy Create free account
hub / github.com/cucumber/cucumber-cpp / MarkingAroundStepHook

Class MarkingAroundStepHook

tests/unit/StepCallChainTest.cpp:32–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30};
31
32class MarkingAroundStepHook : public AroundStepHook {
33public:
34 MarkingAroundStepHook(std::string id, std::stringstream* markersPtr) :
35 id(id),
36 markersPtr(markersPtr){};
37
38 MarkingAroundStepHook() :
39 id(""),
40 markersPtr(0){};
41
42 void body() override {
43 if (markersPtr) {
44 (*markersPtr) << "B" << id;
45 }
46 doCall();
47 if (markersPtr) {
48 (*markersPtr) << "A" << id;
49 }
50 }
51
52protected:
53 virtual void doCall() {
54 step->call();
55 }
56
57private:
58 std::string id;
59 std::stringstream* markersPtr;
60};
61
62class BlockingAroundStepHook : public MarkingAroundStepHook {
63public:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected