Event-Driven Programming in C++ 1.0
A case study on event-driven programming in C++
Loading...
Searching...
No Matches
event_queue_test.cpp File Reference

Unit tests for the EventQueue class. More...

#include "event_queue/event_queue.hpp"
#include <cassert>
#include <iostream>
#include <string>
#include <chrono>
#include <thread>
#include <vector>

Functions

int main ()
 

Detailed Description

Unit tests for the EventQueue class.

This file contains unit tests for the EventQueue class to verify that:

  • A newly created event queue is empty.
  • Events are processed in FIFO order.
  • Side effects from events occur as expected.
  • The EventQueue is thread-safe by simulating concurrent event enqueuing.

If any assertion fails, the test will abort, indicating an issue with the EventQueue implementation.

Function Documentation

◆ main()

int main ( )