MCPcopy Create free account
hub / github.com/AGenUI/AGenUI / BatchGuardInnerTest

Class BatchGuardInnerTest

tests/cpp/core/batch_guard_test.cpp:89–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87// --- InnerGuards cascading ---
88
89class BatchGuardInnerTest : public ::testing::Test {
90protected:
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
101TEST_F(BatchGuardInnerTest, OuterBeginEnd_CascadesBeginEndToInner) {
102 outer.beginBatch();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected