![]() |
Analysis Software
Documentation for sPHENIX simulation software
|
#include "gtest/gtest-spi.h"#include "gtest/gtest.h"#include "src/gtest-internal-inl.h"#include <stdlib.h>
Include dependency graph for gtest_output_test_.cc:Go to the source code of this file.
Classes | |
| class | FailingParamTest |
| class | NonFatalFailureInFixtureConstructorTest |
| class | FatalFailureInFixtureConstructorTest |
| class | NonFatalFailureInSetUpTest |
| class | FatalFailureInSetUpTest |
| class | foo::MixedUpTestCaseTest |
| class | foo::MixedUpTestCaseWithSameTestNameTest |
| class | bar::MixedUpTestCaseTest |
| class | bar::MixedUpTestCaseWithSameTestNameTest |
| class | TEST_F_before_TEST_in_same_test_case |
| class | TEST_before_TEST_F_in_same_test_case |
| class | ExpectFailureTest |
| class | FooEnvironment |
| class | BarEnvironment |
Namespaces | |
| namespace | foo |
| namespace | bar |
Macros | |
| #define | GTEST_IMPLEMENTATION_ 1 |
Functions | |
| void | TestEq1 (int x) |
| void | TryTestSubroutine () |
| TEST (PassingTest, PassingTest1) | |
| TEST (PassingTest, PassingTest2) | |
| TEST_P (FailingParamTest, Fails) | |
| INSTANTIATE_TEST_CASE_P (PrintingFailingParams, FailingParamTest, testing::Values(2)) | |
| TEST (NonfatalFailureTest, EscapesStringOperands) | |
| TEST (NonfatalFailureTest, DiffForLongStrings) | |
| TEST (FatalFailureTest, FatalFailureInSubroutine) | |
| TEST (FatalFailureTest, FatalFailureInNestedSubroutine) | |
| TEST (FatalFailureTest, NonfatalFailureInSubroutine) | |
| TEST (LoggingTest, InterleavingLoggingAndAssertions) | |
| void | SubWithoutTrace (int n) |
| void | SubWithTrace (int n) |
| TEST (SCOPED_TRACETest, ObeysScopes) | |
| TEST (SCOPED_TRACETest, WorksInLoop) | |
| TEST (SCOPED_TRACETest, WorksInSubroutine) | |
| TEST (SCOPED_TRACETest, CanBeNested) | |
| TEST (SCOPED_TRACETest, CanBeRepeated) | |
| TEST (DisabledTestsWarningTest, DISABLED_AlsoRunDisabledTestsFlagSuppressesWarning) | |
| void | AdHocTest () |
| int | RunAllTests () |
| TEST_F (NonFatalFailureInFixtureConstructorTest, FailureInConstructor) | |
| TEST_F (FatalFailureInFixtureConstructorTest, FailureInConstructor) | |
| TEST_F (NonFatalFailureInSetUpTest, FailureInSetUp) | |
| TEST_F (FatalFailureInSetUpTest, FailureInSetUp) | |
| TEST (AddFailureAtTest, MessageContainsSpecifiedFileAndLineNumber) | |
| foo::TEST_F (MixedUpTestCaseTest, FirstTestFromNamespaceFoo) | |
| foo::TEST_F (MixedUpTestCaseTest, SecondTestFromNamespaceFoo) | |
| foo::TEST_F (MixedUpTestCaseWithSameTestNameTest, TheSecondTestWithThisNameShouldFail) | |
| bar::TEST_F (MixedUpTestCaseTest, ThisShouldFail) | |
| bar::TEST_F (MixedUpTestCaseTest, ThisShouldFailToo) | |
| bar::TEST_F (MixedUpTestCaseWithSameTestNameTest, TheSecondTestWithThisNameShouldFail) | |
| TEST_F (TEST_F_before_TEST_in_same_test_case, DefinedUsingTEST_F) | |
| TEST (TEST_F_before_TEST_in_same_test_case, DefinedUsingTESTAndShouldFail) | |
| TEST (TEST_before_TEST_F_in_same_test_case, DefinedUsingTEST) | |
| TEST_F (TEST_before_TEST_F_in_same_test_case, DefinedUsingTEST_FAndShouldFail) | |
| TEST (ExpectNonfatalFailureTest, CanReferenceGlobalVariables) | |
| TEST (ExpectNonfatalFailureTest, CanReferenceLocalVariables) | |
| TEST (ExpectNonfatalFailureTest, SucceedsWhenThereIsOneNonfatalFailure) | |
| TEST (ExpectNonfatalFailureTest, FailsWhenThereIsNoNonfatalFailure) | |
| TEST (ExpectNonfatalFailureTest, FailsWhenThereAreTwoNonfatalFailures) | |
| TEST (ExpectNonfatalFailureTest, FailsWhenThereIsOneFatalFailure) | |
| TEST (ExpectNonfatalFailureTest, FailsWhenStatementReturns) | |
| TEST (ExpectFatalFailureTest, CanReferenceGlobalVariables) | |
| TEST (ExpectFatalFailureTest, CanReferenceLocalStaticVariables) | |
| TEST (ExpectFatalFailureTest, SucceedsWhenThereIsOneFatalFailure) | |
| TEST (ExpectFatalFailureTest, FailsWhenThereIsNoFatalFailure) | |
| void | FatalFailure () |
| TEST (ExpectFatalFailureTest, FailsWhenThereAreTwoFatalFailures) | |
| TEST (ExpectFatalFailureTest, FailsWhenThereIsOneNonfatalFailure) | |
| TEST (ExpectFatalFailureTest, FailsWhenStatementReturns) | |
| TEST_F (ExpectFailureTest, ExpectFatalFailure) | |
| TEST_F (ExpectFailureTest, ExpectNonFatalFailure) | |
| TEST_F (ExpectFailureTest, ExpectFatalFailureOnAllThreads) | |
| TEST_F (ExpectFailureTest, ExpectNonFatalFailureOnAllThreads) | |
| int | main (int argc, char **argv) |
Variables | |
| static const char | kGoldenString [] = "\"Line\0 1\"\nLine 2" |
| int | global_integer = 0 |
| #define GTEST_IMPLEMENTATION_ 1 |
Definition at line 46 of file gtest_output_test_.cc.
View newest version in sPHENIX GitHub at line 46 of file gtest_output_test_.cc
| void AdHocTest | ( | ) |
Definition at line 337 of file gtest_output_test_.cc.
View newest version in sPHENIX GitHub at line 337 of file gtest_output_test_.cc
References EXPECT_EQ, EXPECT_TRUE, and printf().
Referenced by RunAllTests().
Here is the call graph for this function:
Here is the caller graph for this function:| void FatalFailure | ( | ) |
Definition at line 710 of file gtest_output_test_.cc.
View newest version in sPHENIX GitHub at line 710 of file gtest_output_test_.cc
References FAIL.
Referenced by TEST().
Here is the caller graph for this function:| INSTANTIATE_TEST_CASE_P | ( | PrintingFailingParams | , |
| FailingParamTest | , | ||
| testing:: | Values2 | ||
| ) |
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 1024 of file gtest_output_test_.cc.
View newest version in sPHENIX GitHub at line 1024 of file gtest_output_test_.cc
References testing::AddGlobalTestEnvironment(), test_fpe::count, testing::internal::posix::FReopen(), GTEST_FLAG, testing::InitGoogleTest(), RUN_ALL_TESTS(), RunAllTests(), and conf::stdout.
Here is the call graph for this function:| int RunAllTests | ( | ) |
Definition at line 344 of file gtest_output_test_.cc.
View newest version in sPHENIX GitHub at line 344 of file gtest_output_test_.cc
References AdHocTest(), and RUN_ALL_TESTS().
Referenced by main().
Here is the call graph for this function:
Here is the caller graph for this function:| void SubWithoutTrace | ( | int | n | ) |
Definition at line 167 of file gtest_output_test_.cc.
View newest version in sPHENIX GitHub at line 167 of file gtest_output_test_.cc
References ASSERT_EQ, and EXPECT_EQ.
Referenced by SubWithTrace(), and TEST().
Here is the caller graph for this function:| void SubWithTrace | ( | int | n | ) |
Definition at line 173 of file gtest_output_test_.cc.
View newest version in sPHENIX GitHub at line 173 of file gtest_output_test_.cc
References SCOPED_TRACE, and SubWithoutTrace().
Referenced by TEST().
Here is the call graph for this function:
Here is the caller graph for this function:| TEST | ( | PassingTest | , |
| PassingTest1 | |||
| ) |
Definition at line 85 of file gtest_output_test_.cc.
View newest version in sPHENIX GitHub at line 85 of file gtest_output_test_.cc
| TEST | ( | PassingTest | , |
| PassingTest2 | |||
| ) |
Definition at line 88 of file gtest_output_test_.cc.
View newest version in sPHENIX GitHub at line 88 of file gtest_output_test_.cc
| TEST | ( | NonfatalFailureTest | , |
| EscapesStringOperands | |||
| ) |
Definition at line 107 of file gtest_output_test_.cc.
View newest version in sPHENIX GitHub at line 107 of file gtest_output_test_.cc
References parse_cmake_options::actual, EXPECT_EQ, and kGoldenString.
| TEST | ( | NonfatalFailureTest | , |
| DiffForLongStrings | |||
| ) |
Definition at line 115 of file gtest_output_test_.cc.
View newest version in sPHENIX GitHub at line 115 of file gtest_output_test_.cc
References EXPECT_EQ.
| TEST | ( | FatalFailureTest | , |
| FatalFailureInSubroutine | |||
| ) |
Definition at line 121 of file gtest_output_test_.cc.
View newest version in sPHENIX GitHub at line 121 of file gtest_output_test_.cc
References printf(), and TryTestSubroutine().
Here is the call graph for this function:| TEST | ( | FatalFailureTest | , |
| FatalFailureInNestedSubroutine | |||
| ) |
Definition at line 128 of file gtest_output_test_.cc.
View newest version in sPHENIX GitHub at line 128 of file gtest_output_test_.cc
References FAIL, printf(), and TryTestSubroutine().
Here is the call graph for this function:| TEST | ( | FatalFailureTest | , |
| NonfatalFailureInSubroutine | |||
| ) |
Definition at line 145 of file gtest_output_test_.cc.
View newest version in sPHENIX GitHub at line 145 of file gtest_output_test_.cc
References ASSERT_FALSE, EXPECT_TRUE, and printf().
Here is the call graph for this function:| TEST | ( | LoggingTest | , |
| InterleavingLoggingAndAssertions | |||
| ) |
Definition at line 152 of file gtest_output_test_.cc.
View newest version in sPHENIX GitHub at line 152 of file gtest_output_test_.cc
References KFPMath::a, EXPECT_GE, i, and printf().
Here is the call graph for this function:| TEST | ( | SCOPED_TRACETest | , |
| ObeysScopes | |||
| ) |
Definition at line 180 of file gtest_output_test_.cc.
View newest version in sPHENIX GitHub at line 180 of file gtest_output_test_.cc
References ADD_FAILURE, printf(), and SCOPED_TRACE.
Here is the call graph for this function:| TEST | ( | SCOPED_TRACETest | , |
| WorksInLoop | |||
| ) |
Definition at line 199 of file gtest_output_test_.cc.
View newest version in sPHENIX GitHub at line 199 of file gtest_output_test_.cc
References i, printf(), SCOPED_TRACE, and SubWithoutTrace().
Here is the call graph for this function:| TEST | ( | SCOPED_TRACETest | , |
| WorksInSubroutine | |||
| ) |
Definition at line 210 of file gtest_output_test_.cc.
View newest version in sPHENIX GitHub at line 210 of file gtest_output_test_.cc
References printf(), and SubWithTrace().
Here is the call graph for this function:| TEST | ( | SCOPED_TRACETest | , |
| CanBeNested | |||
| ) |
Definition at line 218 of file gtest_output_test_.cc.
View newest version in sPHENIX GitHub at line 218 of file gtest_output_test_.cc
References printf(), SCOPED_TRACE, and SubWithTrace().
Here is the call graph for this function:| TEST | ( | SCOPED_TRACETest | , |
| CanBeRepeated | |||
| ) |
Definition at line 227 of file gtest_output_test_.cc.
View newest version in sPHENIX GitHub at line 227 of file gtest_output_test_.cc
References ADD_FAILURE, printf(), and SCOPED_TRACE.
Here is the call graph for this function:| TEST | ( | DisabledTestsWarningTest | , |
| DISABLED_AlsoRunDisabledTestsFlagSuppressesWarning | |||
| ) |
Definition at line 326 of file gtest_output_test_.cc.
View newest version in sPHENIX GitHub at line 326 of file gtest_output_test_.cc
| TEST | ( | AddFailureAtTest | , |
| MessageContainsSpecifiedFileAndLineNumber | |||
| ) |
Definition at line 461 of file gtest_output_test_.cc.
View newest version in sPHENIX GitHub at line 461 of file gtest_output_test_.cc
References ADD_FAILURE_AT.
| TEST | ( | TEST_F_before_TEST_in_same_test_case | , |
| DefinedUsingTESTAndShouldFail | |||
| ) |
Definition at line 581 of file gtest_output_test_.cc.
View newest version in sPHENIX GitHub at line 581 of file gtest_output_test_.cc
| TEST | ( | TEST_before_TEST_F_in_same_test_case | , |
| DefinedUsingTEST | |||
| ) |
Definition at line 586 of file gtest_output_test_.cc.
View newest version in sPHENIX GitHub at line 586 of file gtest_output_test_.cc
| TEST | ( | ExpectNonfatalFailureTest | , |
| CanReferenceGlobalVariables | |||
| ) |
Definition at line 597 of file gtest_output_test_.cc.
View newest version in sPHENIX GitHub at line 597 of file gtest_output_test_.cc
References EXPECT_EQ, and EXPECT_NONFATAL_FAILURE.
| TEST | ( | ExpectNonfatalFailureTest | , |
| CanReferenceLocalVariables | |||
| ) |
Definition at line 606 of file gtest_output_test_.cc.
View newest version in sPHENIX GitHub at line 606 of file gtest_output_test_.cc
References EXPECT_EQ, EXPECT_NONFATAL_FAILURE, Acts::UnitConstants::m, and n.
| TEST | ( | ExpectNonfatalFailureTest | , |
| SucceedsWhenThereIsOneNonfatalFailure | |||
| ) |
Definition at line 617 of file gtest_output_test_.cc.
View newest version in sPHENIX GitHub at line 617 of file gtest_output_test_.cc
References ADD_FAILURE, and EXPECT_NONFATAL_FAILURE.
| TEST | ( | ExpectNonfatalFailureTest | , |
| FailsWhenThereIsNoNonfatalFailure | |||
| ) |
Definition at line 625 of file gtest_output_test_.cc.
View newest version in sPHENIX GitHub at line 625 of file gtest_output_test_.cc
References EXPECT_NONFATAL_FAILURE, and printf().
Here is the call graph for this function:| TEST | ( | ExpectNonfatalFailureTest | , |
| FailsWhenThereAreTwoNonfatalFailures | |||
| ) |
Definition at line 633 of file gtest_output_test_.cc.
View newest version in sPHENIX GitHub at line 633 of file gtest_output_test_.cc
References ADD_FAILURE, EXPECT_NONFATAL_FAILURE, and printf().
Here is the call graph for this function:| TEST | ( | ExpectNonfatalFailureTest | , |
| FailsWhenThereIsOneFatalFailure | |||
| ) |
Definition at line 643 of file gtest_output_test_.cc.
View newest version in sPHENIX GitHub at line 643 of file gtest_output_test_.cc
References EXPECT_NONFATAL_FAILURE, FAIL, and printf().
Here is the call graph for this function:| TEST | ( | ExpectNonfatalFailureTest | , |
| FailsWhenStatementReturns | |||
| ) |
Definition at line 652 of file gtest_output_test_.cc.
View newest version in sPHENIX GitHub at line 652 of file gtest_output_test_.cc
References EXPECT_NONFATAL_FAILURE, and printf().
Here is the call graph for this function:| TEST | ( | ExpectFatalFailureTest | , |
| CanReferenceGlobalVariables | |||
| ) |
Definition at line 676 of file gtest_output_test_.cc.
View newest version in sPHENIX GitHub at line 676 of file gtest_output_test_.cc
References ASSERT_EQ, and EXPECT_FATAL_FAILURE.
| TEST | ( | ExpectFatalFailureTest | , |
| CanReferenceLocalStaticVariables | |||
| ) |
Definition at line 685 of file gtest_output_test_.cc.
View newest version in sPHENIX GitHub at line 685 of file gtest_output_test_.cc
References ASSERT_EQ, EXPECT_FATAL_FAILURE, and n.
| TEST | ( | ExpectFatalFailureTest | , |
| SucceedsWhenThereIsOneFatalFailure | |||
| ) |
Definition at line 695 of file gtest_output_test_.cc.
View newest version in sPHENIX GitHub at line 695 of file gtest_output_test_.cc
References EXPECT_FATAL_FAILURE, and FAIL.
| TEST | ( | ExpectFatalFailureTest | , |
| FailsWhenThereIsNoFatalFailure | |||
| ) |
Definition at line 703 of file gtest_output_test_.cc.
View newest version in sPHENIX GitHub at line 703 of file gtest_output_test_.cc
References EXPECT_FATAL_FAILURE, and printf().
Here is the call graph for this function:| TEST | ( | ExpectFatalFailureTest | , |
| FailsWhenThereAreTwoFatalFailures | |||
| ) |
Definition at line 716 of file gtest_output_test_.cc.
View newest version in sPHENIX GitHub at line 716 of file gtest_output_test_.cc
References EXPECT_FATAL_FAILURE, FatalFailure(), and printf().
Here is the call graph for this function:| TEST | ( | ExpectFatalFailureTest | , |
| FailsWhenThereIsOneNonfatalFailure | |||
| ) |
Definition at line 726 of file gtest_output_test_.cc.
View newest version in sPHENIX GitHub at line 726 of file gtest_output_test_.cc
References ADD_FAILURE, EXPECT_FATAL_FAILURE, and printf().
Here is the call graph for this function:| TEST | ( | ExpectFatalFailureTest | , |
| FailsWhenStatementReturns | |||
| ) |
Definition at line 735 of file gtest_output_test_.cc.
View newest version in sPHENIX GitHub at line 735 of file gtest_output_test_.cc
References EXPECT_FATAL_FAILURE, and printf().
Here is the call graph for this function:| TEST_F | ( | NonFatalFailureInFixtureConstructorTest | , |
| FailureInConstructor | |||
| ) |
Definition at line 370 of file gtest_output_test_.cc.
View newest version in sPHENIX GitHub at line 370 of file gtest_output_test_.cc
References ADD_FAILURE.
| TEST_F | ( | FatalFailureInFixtureConstructorTest | , |
| FailureInConstructor | |||
| ) |
Definition at line 404 of file gtest_output_test_.cc.
View newest version in sPHENIX GitHub at line 404 of file gtest_output_test_.cc
References ADD_FAILURE.
| TEST_F | ( | NonFatalFailureInSetUpTest | , |
| FailureInSetUp | |||
| ) |
Definition at line 431 of file gtest_output_test_.cc.
View newest version in sPHENIX GitHub at line 431 of file gtest_output_test_.cc
References FAIL.
| TEST_F | ( | FatalFailureInSetUpTest | , |
| FailureInSetUp | |||
| ) |
Definition at line 456 of file gtest_output_test_.cc.
View newest version in sPHENIX GitHub at line 456 of file gtest_output_test_.cc
References FAIL.
| TEST_F | ( | TEST_F_before_TEST_in_same_test_case | , |
| DefinedUsingTEST_F | |||
| ) |
Definition at line 577 of file gtest_output_test_.cc.
View newest version in sPHENIX GitHub at line 577 of file gtest_output_test_.cc
| TEST_F | ( | TEST_before_TEST_F_in_same_test_case | , |
| DefinedUsingTEST_FAndShouldFail | |||
| ) |
Definition at line 590 of file gtest_output_test_.cc.
View newest version in sPHENIX GitHub at line 590 of file gtest_output_test_.cc
| TEST_F | ( | ExpectFailureTest | , |
| ExpectFatalFailure | |||
| ) |
Definition at line 892 of file gtest_output_test_.cc.
View newest version in sPHENIX GitHub at line 892 of file gtest_output_test_.cc
References EXPECT_FATAL_FAILURE, printf(), and SUCCEED.
Here is the call graph for this function:| TEST_F | ( | ExpectFailureTest | , |
| ExpectNonFatalFailure | |||
| ) |
Definition at line 906 of file gtest_output_test_.cc.
View newest version in sPHENIX GitHub at line 906 of file gtest_output_test_.cc
References EXPECT_NONFATAL_FAILURE, printf(), and SUCCEED.
Here is the call graph for this function:| TEST_F | ( | ExpectFailureTest | , |
| ExpectFatalFailureOnAllThreads | |||
| ) |
Definition at line 963 of file gtest_output_test_.cc.
View newest version in sPHENIX GitHub at line 963 of file gtest_output_test_.cc
References EXPECT_FATAL_FAILURE_ON_ALL_THREADS, printf(), and SUCCEED.
Here is the call graph for this function:| TEST_F | ( | ExpectFailureTest | , |
| ExpectNonFatalFailureOnAllThreads | |||
| ) |
Definition at line 977 of file gtest_output_test_.cc.
View newest version in sPHENIX GitHub at line 977 of file gtest_output_test_.cc
References EXPECT_NONFATAL_FAILURE_ON_ALL_THREADS, printf(), and SUCCEED.
Here is the call graph for this function:| TEST_P | ( | FailingParamTest | , |
| Fails | |||
| ) |
Definition at line 95 of file gtest_output_test_.cc.
View newest version in sPHENIX GitHub at line 95 of file gtest_output_test_.cc
References EXPECT_EQ.
| void TestEq1 | ( | int | x | ) |
Definition at line 65 of file gtest_output_test_.cc.
View newest version in sPHENIX GitHub at line 65 of file gtest_output_test_.cc
References ASSERT_EQ.
Referenced by TryTestSubroutine().
Here is the caller graph for this function:| void TryTestSubroutine | ( | ) |
Definition at line 71 of file gtest_output_test_.cc.
View newest version in sPHENIX GitHub at line 71 of file gtest_output_test_.cc
References FAIL, testing::Test::HasFatalFailure(), and TestEq1().
Referenced by TEST().
Here is the call graph for this function:
Here is the caller graph for this function:| int global_integer = 0 |
Definition at line 594 of file gtest_output_test_.cc.
View newest version in sPHENIX GitHub at line 594 of file gtest_output_test_.cc
|
static |
Definition at line 105 of file gtest_output_test_.cc.
View newest version in sPHENIX GitHub at line 105 of file gtest_output_test_.cc
Referenced by TEST().