|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Unit tests for ahSingleton.H. More...
#include <gtest/gtest.h>#include <ahSingleton.H>#include <atomic>#include <thread>#include <type_traits>#include <vector>Go to the source code of this file.
Functions | |
| TEST (AhSingleton, SingletonGetInstanceReturnsSameObject) | |
| TEST (AhSingleton, MakeSingletonReturnsSameObject) | |
| TEST (AhSingleton, MakeSingletonReturnsNonConstReferenceAndIsMutable) | |
| TEST (AhSingleton, CopyAndMoveAreDisabled) | |
| TEST (AhSingleton, GetInstanceIsNoexcept) | |
| TEST (AhSingleton, ThreadSafeInitializationMeyersSingleton) | |
| int | main (int argc, char **argv) |
Unit tests for ahSingleton.H.
Tests cover:
Definition in file ahSingleton_test.cc.
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 157 of file ahSingleton_test.cc.
| TEST | ( | AhSingleton | , |
| CopyAndMoveAreDisabled | |||
| ) |
Definition at line 101 of file ahSingleton_test.cc.
| TEST | ( | AhSingleton | , |
| GetInstanceIsNoexcept | |||
| ) |
Definition at line 114 of file ahSingleton_test.cc.
References Singleton::get_instance().
| TEST | ( | AhSingleton | , |
| MakeSingletonReturnsNonConstReferenceAndIsMutable | |||
| ) |
Definition at line 94 of file ahSingleton_test.cc.
| TEST | ( | AhSingleton | , |
| MakeSingletonReturnsSameObject | |||
| ) |
Definition at line 87 of file ahSingleton_test.cc.
| TEST | ( | AhSingleton | , |
| SingletonGetInstanceReturnsSameObject | |||
| ) |
Definition at line 80 of file ahSingleton_test.cc.
References Singleton::get_instance().
| TEST | ( | AhSingleton | , |
| ThreadSafeInitializationMeyersSingleton | |||
| ) |
Definition at line 121 of file ahSingleton_test.cc.