MCPcopy Create free account
hub / github.com/Dobiasd/FunctionalPlus / CompositionTestState

Class CompositionTestState

test/composition_test.cpp:40–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40class CompositionTestState {
41public:
42 explicit CompositionTestState(int x)
43 : x_(x)
44 {
45 }
46 void Add(int y) { x_ += y; }
47 int Get() const { return x_; }
48
49private:
50 int x_;
51};
52
53TEST_CASE("composition_test - forward_apply")
54{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected