| 49 | BOOST_FIXTURE_TEST_SUITE(EventPublisherTests, EventPublisherFixture) |
| 50 | |
| 51 | BOOST_AUTO_TEST_CASE(ShouldPublishEvent) |
| 52 | { |
| 53 | m_ringBuffer->addGatingSequences({ std::make_shared< NoOpEventProcessor< LongEvent > >(m_ringBuffer)->sequence() }); |
| 54 | |
| 55 | m_ringBuffer->publishEvent(m_translator); |
| 56 | m_ringBuffer->publishEvent(m_translator); |
| 57 | |
| 58 | BOOST_CHECK_EQUAL(0L + m_valueAdd, (*m_ringBuffer)[0].value); |
| 59 | BOOST_CHECK_EQUAL(1L + m_valueAdd, (*m_ringBuffer)[1].value); |
| 60 | } |
| 61 | |
| 62 | BOOST_AUTO_TEST_CASE(ShouldTryPublishEvent) |
| 63 | { |
nothing calls this directly
no test coverage detected