| 87 | // --- InnerGuards cascading --- |
| 88 | |
| 89 | class BatchGuardInnerTest : public ::testing::Test { |
| 90 | protected: |
| 91 | int outerFlushCount = 0; |
| 92 | int innerFlushCount = 0; |
| 93 | BatchGuard inner{[this]() { ++innerFlushCount; }}; |
| 94 | BatchGuard outer{[this]() { ++outerFlushCount; }}; |
| 95 | |
| 96 | void SetUp() override { |
| 97 | outer.setInnerGuards({&inner}); |
| 98 | } |
| 99 | }; |
| 100 | |
| 101 | TEST_F(BatchGuardInnerTest, OuterBeginEnd_CascadesBeginEndToInner) { |
| 102 | outer.beginBatch(); |
nothing calls this directly
no outgoing calls
no test coverage detected