MCPcopy Create free account
hub / github.com/arjunskumar/Robotics_CPP_Notes / TEST

Function TEST

capstone/test_pipeline.cpp:5–11  ·  view source on GitHub ↗

Test 1: BoundedQueue basic push/pop

Source from the content-addressed store, hash-verified

3
4// Test 1: BoundedQueue basic push/pop
5TEST(BoundedQueueTest, PushPopRoundTrip) {
6 BoundedQueue<int, 4> q;
7 q.push(42);
8 auto val = q.pop();
9 ASSERT_TRUE(val.has_value());
10 EXPECT_EQ(*val, 42);
11}
12
13// Test 2: Shutdown unblocks waiting consumer
14TEST(BoundedQueueTest, ShutdownUnblocksConsumer) {

Callers

nothing calls this directly

Calls 6

pushMethod · 0.80
popMethod · 0.80
shutdownMethod · 0.80
startMethod · 0.80
stopMethod · 0.80
processedCountMethod · 0.80

Tested by

no test coverage detected