|
Apache Mesos
|
#include <string>#include <gtest/gtest.h>#include <stout/option.hpp>#include <stout/result.hpp>#include <stout/try.hpp>Go to the source code of this file.
Macros | |
| #define | ASSERT_SOME(actual) ASSERT_PRED_FORMAT1(AssertSome, actual) |
| #define | EXPECT_SOME(actual) EXPECT_PRED_FORMAT1(AssertSome, actual) |
| #define | ASSERT_SOME_EQ(expected, actual) ASSERT_PRED_FORMAT2(AssertSomeEq, expected, actual) |
| #define | EXPECT_SOME_EQ(expected, actual) EXPECT_PRED_FORMAT2(AssertSomeEq, expected, actual) |
| #define | ASSERT_SOME_NE(notExpected, actual) ASSERT_PRED_FORMAT2(AssertSomeNe, notExpected, actual) |
| #define | EXPECT_SOME_NE(notExpected, actual) EXPECT_PRED_FORMAT2(AssertSomeNe, notExpected, actual) |
| #define | ASSERT_SOME_TRUE(actual) ASSERT_PRED_FORMAT2(AssertSomeEq, true, actual) |
| #define | EXPECT_SOME_TRUE(actual) EXPECT_PRED_FORMAT2(AssertSomeEq, true, actual) |
| #define | ASSERT_SOME_FALSE(actual) ASSERT_PRED_FORMAT2(AssertSomeEq, false, actual) |
| #define | EXPECT_SOME_FALSE(actual) EXPECT_PRED_FORMAT2(AssertSomeEq, false, actual) |
| #define | ASSERT_ERROR(actual) ASSERT_TRUE(actual.isError()) |
| #define | EXPECT_ERROR(actual) EXPECT_TRUE(actual.isError()) |
| #define | ASSERT_NONE(actual) ASSERT_TRUE(actual.isNone()) |
| #define | EXPECT_NONE(actual) EXPECT_TRUE(actual.isNone()) |
| #define | TEST_TEMP_DISABLED_ON_WINDOWS(test_case_name, test_name) TEST(test_case_name, test_name) |
| #define | TEST_F_TEMP_DISABLED_ON_WINDOWS(test_case_name, test_name) TEST_F(test_case_name, test_name) |
| #define | TEST_P_TEMP_DISABLED_ON_WINDOWS(test_case_name, test_name) TEST_P(test_case_name, test_name) |
| #define | SLEEP_COMMAND(x) "sleep " #x |
| #define | ASSERT_EXITED(expected, actual) ASSERT_PRED_FORMAT2(AssertExited, expected, actual) |
| #define | EXPECT_EXITED(expected, actual) EXPECT_PRED_FORMAT2(AssertExited, expected, actual) |
| #define | ASSERT_WEXITSTATUS_EQ(expected, actual) ASSERT_PRED_FORMAT2(AssertExitStatusEq, expected, actual) |
| #define | EXPECT_WEXITSTATUS_EQ(expected, actual) EXPECT_PRED_FORMAT2(AssertExitStatusEq, expected, actual) |
| #define | ASSERT_WEXITSTATUS_NE(expected, actual) ASSERT_PRED_FORMAT2(AssertExitStatusNe, expected, actual) |
| #define | EXPECT_WEXITSTATUS_NE(expected, actual) EXPECT_PRED_FORMAT2(AssertExitStatusNe, expected, actual) |
| #define | ASSERT_SIGNALED(expected, actual) ASSERT_PRED_FORMAT2(AssertSignaled, expected, actual) |
| #define | EXPECT_SIGNALED(expected, actual) EXPECT_PRED_FORMAT2(AssertSignaled, expected, actual) |
| #define | ASSERT_WTERMSIG_EQ(expected, actual) ASSERT_PRED_FORMAT2(AssertTermSigEq, expected, actual) |
| #define | EXPECT_WTERMSIG_EQ(expected, actual) EXPECT_PRED_FORMAT2(AssertTermSigEq, expected, actual) |
| #define | ASSERT_WTERMSIG_NE(expected, actual) ASSERT_PRED_FORMAT2(AssertTermSigNe, expected, actual) |
| #define | EXPECT_WTERMSIG_NE(expected, actual) EXPECT_PRED_FORMAT2(AssertTermSigNe, expected, actual) |
Functions | |
| template<typename T > | |
| ::testing::AssertionResult | AssertSome (const char *expr, const Option< T > &actual) |
| template<typename T > | |
| ::testing::AssertionResult | AssertSome (const char *expr, const Try< T > &actual) |
| template<typename T > | |
| ::testing::AssertionResult | AssertSome (const char *expr, const Result< T > &actual) |
| template<typename T1 , typename T2 > | |
| ::testing::AssertionResult | AssertSomeEq (const char *expectedExpr, const char *actualExpr, const T1 &expected, const T2 &actual) |
| template<typename T1 , typename T2 > | |
| ::testing::AssertionResult | AssertSomeNe (const char *notExpectedExpr, const char *actualExpr, const T1 ¬Expected, const T2 &actual) |
| inline::testing::AssertionResult | AssertExited (const char *actualExpr, const int actual) |
| inline::testing::AssertionResult | AssertExitStatusEq (const char *expectedExpr, const char *actualExpr, const int expected, const int actual) |
| inline::testing::AssertionResult | AssertExitStatusNe (const char *expectedExpr, const char *actualExpr, const int expected, const int actual) |
| inline::testing::AssertionResult | AssertSignaled (const char *actualExpr, const int actual) |
| inline::testing::AssertionResult | AssertTermSigEq (const char *expectedExpr, const char *actualExpr, const int expected, const int actual) |
| inline::testing::AssertionResult | AssertTermSigNe (const char *expectedExpr, const char *actualExpr, const int expected, const int actual) |
| #define ASSERT_ERROR | ( | actual | ) | ASSERT_TRUE(actual.isError()) |
| #define ASSERT_EXITED | ( | expected, | |
| actual | |||
| ) | ASSERT_PRED_FORMAT2(AssertExited, expected, actual) |
| #define ASSERT_NONE | ( | actual | ) | ASSERT_TRUE(actual.isNone()) |
| #define ASSERT_SIGNALED | ( | expected, | |
| actual | |||
| ) | ASSERT_PRED_FORMAT2(AssertSignaled, expected, actual) |
| #define ASSERT_SOME | ( | actual | ) | ASSERT_PRED_FORMAT1(AssertSome, actual) |
| #define ASSERT_SOME_EQ | ( | expected, | |
| actual | |||
| ) | ASSERT_PRED_FORMAT2(AssertSomeEq, expected, actual) |
| #define ASSERT_SOME_FALSE | ( | actual | ) | ASSERT_PRED_FORMAT2(AssertSomeEq, false, actual) |
| #define ASSERT_SOME_NE | ( | notExpected, | |
| actual | |||
| ) | ASSERT_PRED_FORMAT2(AssertSomeNe, notExpected, actual) |
| #define ASSERT_SOME_TRUE | ( | actual | ) | ASSERT_PRED_FORMAT2(AssertSomeEq, true, actual) |
| #define ASSERT_WEXITSTATUS_EQ | ( | expected, | |
| actual | |||
| ) | ASSERT_PRED_FORMAT2(AssertExitStatusEq, expected, actual) |
| #define ASSERT_WEXITSTATUS_NE | ( | expected, | |
| actual | |||
| ) | ASSERT_PRED_FORMAT2(AssertExitStatusNe, expected, actual) |
| #define ASSERT_WTERMSIG_EQ | ( | expected, | |
| actual | |||
| ) | ASSERT_PRED_FORMAT2(AssertTermSigEq, expected, actual) |
| #define ASSERT_WTERMSIG_NE | ( | expected, | |
| actual | |||
| ) | ASSERT_PRED_FORMAT2(AssertTermSigNe, expected, actual) |
| #define EXPECT_ERROR | ( | actual | ) | EXPECT_TRUE(actual.isError()) |
| #define EXPECT_EXITED | ( | expected, | |
| actual | |||
| ) | EXPECT_PRED_FORMAT2(AssertExited, expected, actual) |
| #define EXPECT_NONE | ( | actual | ) | EXPECT_TRUE(actual.isNone()) |
| #define EXPECT_SIGNALED | ( | expected, | |
| actual | |||
| ) | EXPECT_PRED_FORMAT2(AssertSignaled, expected, actual) |
| #define EXPECT_SOME | ( | actual | ) | EXPECT_PRED_FORMAT1(AssertSome, actual) |
| #define EXPECT_SOME_EQ | ( | expected, | |
| actual | |||
| ) | EXPECT_PRED_FORMAT2(AssertSomeEq, expected, actual) |
| #define EXPECT_SOME_FALSE | ( | actual | ) | EXPECT_PRED_FORMAT2(AssertSomeEq, false, actual) |
| #define EXPECT_SOME_NE | ( | notExpected, | |
| actual | |||
| ) | EXPECT_PRED_FORMAT2(AssertSomeNe, notExpected, actual) |
| #define EXPECT_SOME_TRUE | ( | actual | ) | EXPECT_PRED_FORMAT2(AssertSomeEq, true, actual) |
| #define EXPECT_WEXITSTATUS_EQ | ( | expected, | |
| actual | |||
| ) | EXPECT_PRED_FORMAT2(AssertExitStatusEq, expected, actual) |
| #define EXPECT_WEXITSTATUS_NE | ( | expected, | |
| actual | |||
| ) | EXPECT_PRED_FORMAT2(AssertExitStatusNe, expected, actual) |
| #define EXPECT_WTERMSIG_EQ | ( | expected, | |
| actual | |||
| ) | EXPECT_PRED_FORMAT2(AssertTermSigEq, expected, actual) |
| #define EXPECT_WTERMSIG_NE | ( | expected, | |
| actual | |||
| ) | EXPECT_PRED_FORMAT2(AssertTermSigNe, expected, actual) |
| #define SLEEP_COMMAND | ( | x | ) | "sleep " #x |
| #define TEST_F_TEMP_DISABLED_ON_WINDOWS | ( | test_case_name, | |
| test_name | |||
| ) | TEST_F(test_case_name, test_name) |
| #define TEST_P_TEMP_DISABLED_ON_WINDOWS | ( | test_case_name, | |
| test_name | |||
| ) | TEST_P(test_case_name, test_name) |
| #define TEST_TEMP_DISABLED_ON_WINDOWS | ( | test_case_name, | |
| test_name | |||
| ) | TEST(test_case_name, test_name) |
| inline ::testing::AssertionResult AssertExited | ( | const char * | actualExpr, |
| const int | actual | ||
| ) |
| inline ::testing::AssertionResult AssertExitStatusEq | ( | const char * | expectedExpr, |
| const char * | actualExpr, | ||
| const int | expected, | ||
| const int | actual | ||
| ) |
| inline ::testing::AssertionResult AssertExitStatusNe | ( | const char * | expectedExpr, |
| const char * | actualExpr, | ||
| const int | expected, | ||
| const int | actual | ||
| ) |
| inline ::testing::AssertionResult AssertSignaled | ( | const char * | actualExpr, |
| const int | actual | ||
| ) |
| ::testing::AssertionResult AssertSome | ( | const char * | expr, |
| const Option< T > & | actual | ||
| ) |
| ::testing::AssertionResult AssertSome | ( | const char * | expr, |
| const Try< T > & | actual | ||
| ) |
| ::testing::AssertionResult AssertSome | ( | const char * | expr, |
| const Result< T > & | actual | ||
| ) |
| ::testing::AssertionResult AssertSomeEq | ( | const char * | expectedExpr, |
| const char * | actualExpr, | ||
| const T1 & | expected, | ||
| const T2 & | actual | ||
| ) |
| ::testing::AssertionResult AssertSomeNe | ( | const char * | notExpectedExpr, |
| const char * | actualExpr, | ||
| const T1 & | notExpected, | ||
| const T2 & | actual | ||
| ) |
| inline ::testing::AssertionResult AssertTermSigEq | ( | const char * | expectedExpr, |
| const char * | actualExpr, | ||
| const int | expected, | ||
| const int | actual | ||
| ) |
| inline ::testing::AssertionResult AssertTermSigNe | ( | const char * | expectedExpr, |
| const char * | actualExpr, | ||
| const int | expected, | ||
| const int | actual | ||
| ) |
1.8.5