| 109 | */ |
| 110 | |
| 111 | bool testTryPushWhenFull(const QueueWrapper& queueWrapper) |
| 112 | { |
| 113 | // queue is full, so tryPush(..., const T&) should fail immediately |
| 114 | OperationCountingType::resetCounters(); |
| 115 | waitForNextTick(); |
| 116 | const auto start = TickClock::now(); |
| 117 | const uint8_t priority {}; |
| 118 | const OperationCountingType testValue {}; // 1 construction |
| 119 | const auto ret = queueWrapper.tryPush(priority, testValue); |
| 120 | return ret == EAGAIN && TickClock::now() == start && queueWrapper.checkCounters(1, 0, 0, 0, 0, 0, 0) == true; |
| 121 | } |
| 122 | |
| 123 | /** |
| 124 | * \brief Phase 1 of test case. |
no test coverage detected