Testing of map.
More...
|
bool | run () |
| Run Unit test's setup, test, and teardown functions. More...
|
|
void map_test::setup_dummy_map |
( |
map< int, string > & |
m | ) |
|
|
private |
Setup map of integers to strings.
void map_test::test_default_constructor |
( |
| ) |
|
|
private |
Test default constructor generates map of size 0.
void map_test::test_element_access_operator_exists |
( |
| ) |
|
|
private |
Test element access operator when element exists.
void map_test::test_element_access_operator_not_exists |
( |
| ) |
|
|
private |
Test element access operator when element does not exist.
void map_test::test_element_access_at_exists |
( |
| ) |
|
|
private |
Test element access at when element exists.
void map_test::test_element_access_at_not_exists |
( |
| ) |
|
|
private |
Test element access at when element does not exist, ensure this function will throw an error.
void map_test::test_find_exists |
( |
| ) |
|
|
private |
Test find when element exists.
void map_test::test_find_not_exists |
( |
| ) |
|
|
private |
Test find when element does not exist.
void map_test::test_count_exists |
( |
| ) |
|
|
private |
Test count when element exists.
void map_test::test_count_not_exists |
( |
| ) |
|
|
private |
Test count when element does not exist.
void map_test::test_insert_exists |
( |
| ) |
|
|
private |
Test insertion when element is already in map.
void map_test::test_insert_not_exists |
( |
| ) |
|
|
private |
Test insertion when element is not already in map.
void map_test::test_erase_iterator |
( |
| ) |
|
|
private |
Test erase with an iterator.
void map_test::test_erase_key |
( |
| ) |
|
|
private |
void map_test::test_copy_constructor |
( |
| ) |
|
|
private |
void map_test::test_copy_assign |
( |
| ) |
|
|
private |
Run Unit test's setup, test, and teardown functions.
- Returns
- Passed test or not
virtual void test_class::setup |
( |
| ) |
|
|
protectedvirtualinherited |
virtual void test_class::tear_down |
( |
| ) |
|
|
protectedvirtualinherited |
Teardown data which was tested.
bool test_class::all_tests_passed |
( |
| ) |
const |
|
protectedinherited |
- Returns
- All asserts have passed
void test_class::assert_msg |
( |
bool |
b, |
|
|
std::string |
msg |
|
) |
| |
|
protectedinherited |
Assert a unit test passes.
- Parameters
-
b | Conditional for assert |
msg | Message on fail |
The documentation for this class was generated from the following file: