|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Unit tests for Static_Event_Table and Dynamic_Event_Table. More...
Go to the source code of this file.
Functions | |
| void * | event_hello (void *data) |
| void * | event_increment (void *data) |
| void * | event_echo (void *data) |
| TEST (LegacyStaticEventTableTest, ConstructorAndSize) | |
| TEST (LegacyStaticEventTableTest, RegisterAndExecute) | |
| TEST (LegacyStaticEventTableTest, RegisterWithAutoIndex) | |
| TEST (LegacyStaticEventTableTest, ExecuteWithData) | |
| TEST (LegacyStaticEventTableTest, UnregisterEvent) | |
| TEST (LegacyStaticEventTableTest, OutOfBoundsAccess) | |
| TEST (LegacyStaticEventTableTest, RegisterOnUsedSlot) | |
| TEST (LegacyStaticEventTableTest, UnregisterUnusedSlot) | |
| TEST (LegacyStaticEventTableTest, MoveSemantics) | |
| TEST (LegacyDynamicEventTableTest, ConstructorAndSize) | |
| TEST (LegacyDynamicEventTableTest, RegisterAndExecute) | |
| TEST (LegacyDynamicEventTableTest, RegisterAtSpecificIndex) | |
| TEST (LegacyDynamicEventTableTest, UnregisterAndShrink) | |
| TEST (LegacyDynamicEventTableTest, ReuseSlot) | |
| TEST (ModernStaticEventTableTest, VoidIntSignature) | |
| TEST (ModernStaticEventTableTest, IntIntIntSignature) | |
| TEST (ModernStaticEventTableTest, StringSignature) | |
| TEST (ModernDynamicEventTableTest, AutoGrowth) | |
| TEST (ModernDynamicEventTableTest, StatefulLambdas) | |
| TEST (ModernDynamicEventTableTest, StdFunctionSupport) | |
| TEST (ModernDynamicEventTableTest, IsRegistered) | |
| TEST (ModernStaticEventTableTest, MoveSemantics) | |
Unit tests for Static_Event_Table and Dynamic_Event_Table.
Tests registration, execution, unregistration, and error handling for event tables. Includes tests for both legacy (void*) interface and modern (type-safe template) interface.
Definition in file driven_table_test.cc.
| void * event_echo | ( | void * | data | ) |
| void * event_hello | ( | void * | data | ) |
| void * event_increment | ( | void * | data | ) |
| TEST | ( | LegacyDynamicEventTableTest | , |
| ConstructorAndSize | |||
| ) |
Definition at line 154 of file driven_table_test.cc.
References Aleph::divide_and_conquer_partition_dp(), and Dynamic_Event_Table< Signature >::size().
| TEST | ( | LegacyDynamicEventTableTest | , |
| RegisterAndExecute | |||
| ) |
Definition at line 159 of file driven_table_test.cc.
References Aleph::divide_and_conquer_partition_dp(), event_echo(), event_hello(), Event_Table< Signature >::execute_event(), Event_Table< Signature >::register_event(), and Dynamic_Event_Table< Signature >::size().
| TEST | ( | LegacyDynamicEventTableTest | , |
| RegisterAtSpecificIndex | |||
| ) |
Definition at line 180 of file driven_table_test.cc.
References Event_Table< Signature >::check(), Aleph::divide_and_conquer_partition_dp(), event_hello(), and Event_Table< Signature >::register_event().
| TEST | ( | LegacyDynamicEventTableTest | , |
| ReuseSlot | |||
| ) |
Definition at line 218 of file driven_table_test.cc.
References Event_Table< Signature >::check(), Aleph::divide_and_conquer_partition_dp(), event_echo(), event_hello(), Event_Table< Signature >::register_event(), and Event_Table< Signature >::unregister_event().
| TEST | ( | LegacyDynamicEventTableTest | , |
| UnregisterAndShrink | |||
| ) |
Definition at line 194 of file driven_table_test.cc.
References Event_Table< Signature >::check(), Aleph::divide_and_conquer_partition_dp(), event_echo(), event_hello(), Event_Table< Signature >::execute_event(), Event_Table< Signature >::register_event(), Dynamic_Event_Table< Signature >::size(), and Event_Table< Signature >::unregister_event().
| TEST | ( | LegacyStaticEventTableTest | , |
| ConstructorAndSize | |||
| ) |
Definition at line 45 of file driven_table_test.cc.
References Aleph::divide_and_conquer_partition_dp(), and Static_Event_Table< Signature >::size().
| TEST | ( | LegacyStaticEventTableTest | , |
| ExecuteWithData | |||
| ) |
Definition at line 82 of file driven_table_test.cc.
References counter, Aleph::divide_and_conquer_partition_dp(), event_increment(), Event_Table< Signature >::execute_event(), and Event_Table< Signature >::register_event().
| TEST | ( | LegacyStaticEventTableTest | , |
| MoveSemantics | |||
| ) |
Definition at line 128 of file driven_table_test.cc.
References Aleph::divide_and_conquer_partition_dp(), and event_hello().
| TEST | ( | LegacyStaticEventTableTest | , |
| OutOfBoundsAccess | |||
| ) |
Definition at line 109 of file driven_table_test.cc.
References Aleph::divide_and_conquer_partition_dp(), event_hello(), Event_Table< Signature >::execute_event(), and Event_Table< Signature >::register_event().
| TEST | ( | LegacyStaticEventTableTest | , |
| RegisterAndExecute | |||
| ) |
Definition at line 50 of file driven_table_test.cc.
References Aleph::divide_and_conquer_partition_dp(), event_hello(), Event_Table< Signature >::execute_event(), and Event_Table< Signature >::register_event().
| TEST | ( | LegacyStaticEventTableTest | , |
| RegisterOnUsedSlot | |||
| ) |
Definition at line 116 of file driven_table_test.cc.
References Aleph::divide_and_conquer_partition_dp(), event_echo(), event_hello(), and Event_Table< Signature >::register_event().
| TEST | ( | LegacyStaticEventTableTest | , |
| RegisterWithAutoIndex | |||
| ) |
Definition at line 62 of file driven_table_test.cc.
References Aleph::divide_and_conquer_partition_dp(), event_hello(), and Event_Table< Signature >::register_event().
| TEST | ( | LegacyStaticEventTableTest | , |
| UnregisterEvent | |||
| ) |
| TEST | ( | LegacyStaticEventTableTest | , |
| UnregisterUnusedSlot | |||
| ) |
Definition at line 123 of file driven_table_test.cc.
References Aleph::divide_and_conquer_partition_dp(), and Event_Table< Signature >::unregister_event().
| TEST | ( | ModernDynamicEventTableTest | , |
| AutoGrowth | |||
| ) |
Definition at line 277 of file driven_table_test.cc.
References Aleph::divide_and_conquer_partition_dp(), Event_Table< Signature >::execute_event(), Event_Table< Signature >::register_event(), and Dynamic_Event_Table< Signature >::size().
| TEST | ( | ModernDynamicEventTableTest | , |
| IsRegistered | |||
| ) |
Definition at line 327 of file driven_table_test.cc.
References Aleph::divide_and_conquer_partition_dp(), Event_Table< Signature >::is_registered(), Event_Table< Signature >::register_event(), and Event_Table< Signature >::unregister_event().
| TEST | ( | ModernDynamicEventTableTest | , |
| StatefulLambdas | |||
| ) |
Definition at line 292 of file driven_table_test.cc.
References Aleph::count(), Aleph::divide_and_conquer_partition_dp(), Event_Table< Signature >::execute_event(), and Event_Table< Signature >::register_event().
| TEST | ( | ModernDynamicEventTableTest | , |
| StdFunctionSupport | |||
| ) |
Definition at line 313 of file driven_table_test.cc.
References Aleph::divide_and_conquer_partition_dp(), Event_Table< Signature >::execute_event(), and Event_Table< Signature >::register_event().
| TEST | ( | ModernStaticEventTableTest | , |
| IntIntIntSignature | |||
| ) |
Definition at line 248 of file driven_table_test.cc.
References Aleph::divide_and_conquer_partition_dp(), Event_Table< Signature >::execute_event(), and Event_Table< Signature >::register_event().
| TEST | ( | ModernStaticEventTableTest | , |
| MoveSemantics | |||
| ) |
Definition at line 343 of file driven_table_test.cc.
References Aleph::divide_and_conquer_partition_dp().
| TEST | ( | ModernStaticEventTableTest | , |
| StringSignature | |||
| ) |
Definition at line 262 of file driven_table_test.cc.
References Aleph::divide_and_conquer_partition_dp(), Event_Table< Signature >::execute_event(), Event_Table< Signature >::register_event(), and Aleph::toupper().
| TEST | ( | ModernStaticEventTableTest | , |
| VoidIntSignature | |||
| ) |
Definition at line 233 of file driven_table_test.cc.
References counter, Aleph::divide_and_conquer_partition_dp(), Event_Table< Signature >::execute_event(), Event_Table< Signature >::register_event(), and Static_Event_Table< Signature >::size().