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