MCPcopy Create free account
hub / github.com/Abc-Arbitrage/Disruptor-cpp / BOOST_AUTO_TEST_CASE

Function BOOST_AUTO_TEST_CASE

Disruptor.Tests/EventPublisherTests.cpp:51–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49BOOST_FIXTURE_TEST_SUITE(EventPublisherTests, EventPublisherFixture)
50
51BOOST_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
62BOOST_AUTO_TEST_CASE(ShouldTryPublishEvent)
63{

Callers

nothing calls this directly

Calls 4

tryPublishEventMethod · 0.80
addGatingSequencesMethod · 0.45
sequenceMethod · 0.45
publishEventMethod · 0.45

Tested by

no test coverage detected