|
iceoryx2
C++ Language Bindings
|
#include <gtest/gtest.h>#include "iox2/bb/static_function.hpp"#include "iox2/bb/testing/testing_error_handler.hpp"#include <thread>#include <utility>Go to the source code of this file.
Namespaces | |
| namespace | iox2 |
| namespace | iox2::bb |
| namespace | iox2::bb::testing |
Functions | |
| template<typename Code > | |
| auto | iox2::bb::testing::has_error (Code &&code) -> bool |
| indicates whether the test error handler registered a specific error | |
| auto | iox2::bb::testing::has_panicked () -> bool |
| indicates whether the test error handler invoked panic | |
| auto | iox2::bb::testing::has_error () -> bool |
| indicates whether the test error handler registered any error | |
| auto | iox2::bb::testing::has_enforce_violation () -> bool |
| indicates whether the test error handler registered an enforce violation | |
| auto | iox2::bb::testing::has_assert_violation () -> bool |
| indicates whether the test error handler registered an assert violation | |
| auto | iox2::bb::testing::has_violation () -> bool |
| indicates whether the test error handler registered violation (there are only two kinds). | |
| auto | iox2::bb::testing::is_in_normal_state () -> bool |
| indicates there is no error, violation or panic. | |
| auto | iox2::bb::testing::run_in_test_thread (const bb::StaticFunction< void()> test_function) -> void |
| runs test_function in a test context that can detect fatal failures; runs in a separate thread | |
| #define IOX2_TESTING_ASSERT_ASSERT_VIOLATION | ( | ) | ASSERT_TRUE(iox2::bb::testing::has_assert_violation()) |
Definition at line 108 of file testing_support.hpp.
| #define IOX2_TESTING_ASSERT_ENFORCE_VIOLATION | ( | ) | ASSERT_TRUE(iox2::bb::testing::has_enforce_violation()) |
Definition at line 110 of file testing_support.hpp.
| #define IOX2_TESTING_ASSERT_ERROR | ( | code | ) | ASSERT_TRUE(iox2::bb::testing::has_error(code)) |
Definition at line 100 of file testing_support.hpp.
| #define IOX2_TESTING_ASSERT_NO_ERROR | ( | ) | ASSERT_FALSE(iox2::bb::testing::has_error()) |
Definition at line 102 of file testing_support.hpp.
| #define IOX2_TESTING_ASSERT_NO_PANIC | ( | ) | ASSERT_FALSE(iox2::bb::testing::has_panicked()) |
Definition at line 96 of file testing_support.hpp.
| #define IOX2_TESTING_ASSERT_NO_VIOLATION | ( | ) | ASSERT_FALSE(iox2::bb::testing::has_violation()) |
Definition at line 106 of file testing_support.hpp.
| #define IOX2_TESTING_ASSERT_OK | ( | ) | ASSERT_TRUE(iox2::bb::testing::is_in_normal_state()) |
Definition at line 94 of file testing_support.hpp.
| #define IOX2_TESTING_ASSERT_PANIC | ( | ) | ASSERT_TRUE(iox2::bb::testing::has_panicked()) |
Definition at line 98 of file testing_support.hpp.
| #define IOX2_TESTING_ASSERT_VIOLATION | ( | ) | ASSERT_TRUE(iox2::bb::testing::has_violation()) |
Definition at line 104 of file testing_support.hpp.
| #define IOX2_TESTING_EXPECT_ASSERT_VIOLATION | ( | ) | EXPECT_TRUE(iox2::bb::testing::has_assert_violation()) |
Definition at line 128 of file testing_support.hpp.
| #define IOX2_TESTING_EXPECT_ENFORCE_VIOLATION | ( | ) | EXPECT_TRUE(iox2::bb::testing::has_enforce_violation()) |
Definition at line 130 of file testing_support.hpp.
| #define IOX2_TESTING_EXPECT_ERROR | ( | code | ) | EXPECT_TRUE(iox2::bb::testing::has_error(code)) |
Definition at line 120 of file testing_support.hpp.
| #define IOX2_TESTING_EXPECT_NO_ERROR | ( | ) | EXPECT_FALSE(iox2::bb::testing::has_error()) |
Definition at line 122 of file testing_support.hpp.
| #define IOX2_TESTING_EXPECT_NO_PANIC | ( | ) | EXPECT_FALSE(iox2::bb::testing::has_panicked()) |
Definition at line 116 of file testing_support.hpp.
| #define IOX2_TESTING_EXPECT_NO_VIOLATION | ( | ) | EXPECT_FALSE(iox2::bb::testing::has_violation()) |
Definition at line 126 of file testing_support.hpp.
| #define IOX2_TESTING_EXPECT_OK | ( | ) | EXPECT_TRUE(iox2::bb::testing::is_in_normal_state()) |
Definition at line 114 of file testing_support.hpp.
| #define IOX2_TESTING_EXPECT_PANIC | ( | ) | EXPECT_TRUE(iox2::bb::testing::has_panicked()) |
Definition at line 118 of file testing_support.hpp.
| #define IOX2_TESTING_EXPECT_VIOLATION | ( | ) | EXPECT_TRUE(iox2::bb::testing::has_violation()) |
Definition at line 124 of file testing_support.hpp.