Sacado Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Namespaces | Typedefs | Functions | Variables
googletest-output-test_.cc File Reference
#include "gtest/gtest-spi.h"
#include "gtest/gtest.h"
#include "src/gtest-internal-inl.h"
#include <stdlib.h>
Include dependency graph for googletest-output-test_.cc:

Go to the source code of this file.

Classes

class  FailingParamTest
 
class  EmptyBasenameParamInst
 
class  NonFatalFailureInFixtureConstructorTest
 
class  FatalFailureInFixtureConstructorTest
 
class  NonFatalFailureInSetUpTest
 
class  FatalFailureInSetUpTest
 
class  foo::MixedUpTestSuiteTest
 
class  foo::MixedUpTestSuiteWithSameTestNameTest
 
class  bar::MixedUpTestSuiteTest
 
class  bar::MixedUpTestSuiteWithSameTestNameTest
 
class  TEST_F_before_TEST_in_same_test_case
 
class  TEST_before_TEST_F_in_same_test_case
 
class  ParamTest
 
class  DetectNotInstantiatedTest
 
class  ExpectFailureTest
 
class  DynamicFixture
 
class  DynamicTest< Pass >
 
class  FooEnvironment
 
class  BarEnvironment
 

Namespaces

 foo
 
 bar
 

Typedefs

using NoTests = ParamTest
 

Functions

void TestEq1 (int x)
 
void TryTestSubroutine ()
 
 TEST (PassingTest, PassingTest1)
 
 TEST (PassingTest, PassingTest2)
 
 TEST_P (FailingParamTest, Fails)
 
 INSTANTIATE_TEST_SUITE_P (PrintingFailingParams, FailingParamTest, testing::Values(2))
 
 TEST_P (EmptyBasenameParamInst, Passes)
 
 INSTANTIATE_TEST_SUITE_P (, EmptyBasenameParamInst, testing::Values(1))
 
 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, AcceptedValues)
 
 TEST (SCOPED_TRACETest, ObeysScopes)
 
 TEST (SCOPED_TRACETest, WorksInLoop)
 
 TEST (SCOPED_TRACETest, WorksInSubroutine)
 
 TEST (SCOPED_TRACETest, CanBeNested)
 
 TEST (SCOPED_TRACETest, CanBeRepeated)
 
 TEST (ScopedTraceTest, WithExplicitFileAndLine)
 
 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)
 
 TEST (GtestFailAtTest, MessageContainsSpecifiedFileAndLineNumber)
 
 foo::TEST_F (MixedUpTestSuiteTest, FirstTestFromNamespaceFoo)
 
 foo::TEST_F (MixedUpTestSuiteTest, SecondTestFromNamespaceFoo)
 
 foo::TEST_F (MixedUpTestSuiteWithSameTestNameTest, TheSecondTestWithThisNameShouldFail)
 
 bar::TEST_F (MixedUpTestSuiteTest, ThisShouldFail)
 
 bar::TEST_F (MixedUpTestSuiteTest, ThisShouldFailToo)
 
 bar::TEST_F (MixedUpTestSuiteWithSameTestNameTest, 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)
 
std::string ParamNameFunc (const testing::TestParamInfo< std::string > &info)
 
 TEST_P (ParamTest, Success)
 
 TEST_P (ParamTest, Failure)
 
 INSTANTIATE_TEST_SUITE_P (PrintingStrings, ParamTest, testing::Values(std::string("a")), ParamNameFunc)
 
 INSTANTIATE_TEST_SUITE_P (ThisIsOdd, NoTests,::testing::Values("Hello"))
 
 TEST_P (DetectNotInstantiatedTest, Used)
 
 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
 
auto dynamic_test
 

Typedef Documentation

using NoTests = ParamTest

Definition at line 737 of file googletest-output-test_.cc.

Function Documentation

void TestEq1 ( int  x)

Definition at line 59 of file googletest-output-test_.cc.

void TryTestSubroutine ( )

Definition at line 65 of file googletest-output-test_.cc.

TEST ( PassingTest  ,
PassingTest1   
)

Definition at line 79 of file googletest-output-test_.cc.

TEST ( PassingTest  ,
PassingTest2   
)

Definition at line 82 of file googletest-output-test_.cc.

TEST_P ( FailingParamTest  ,
Fails   
)

Definition at line 89 of file googletest-output-test_.cc.

INSTANTIATE_TEST_SUITE_P ( PrintingFailingParams  ,
FailingParamTest  ,
testing::  Values
)
TEST_P ( EmptyBasenameParamInst  ,
Passes   
)

Definition at line 103 of file googletest-output-test_.cc.

INSTANTIATE_TEST_SUITE_P ( EmptyBasenameParamInst  ,
testing::  Values
)
TEST ( NonfatalFailureTest  ,
EscapesStringOperands   
)

Definition at line 109 of file googletest-output-test_.cc.

TEST ( NonfatalFailureTest  ,
DiffForLongStrings   
)

Definition at line 117 of file googletest-output-test_.cc.

TEST ( FatalFailureTest  ,
FatalFailureInSubroutine   
)

Definition at line 123 of file googletest-output-test_.cc.

TEST ( FatalFailureTest  ,
FatalFailureInNestedSubroutine   
)

Definition at line 130 of file googletest-output-test_.cc.

TEST ( FatalFailureTest  ,
NonfatalFailureInSubroutine   
)

Definition at line 147 of file googletest-output-test_.cc.

TEST ( LoggingTest  ,
InterleavingLoggingAndAssertions   
)

Definition at line 154 of file googletest-output-test_.cc.

void SubWithoutTrace ( int  n)

Definition at line 169 of file googletest-output-test_.cc.

void SubWithTrace ( int  n)

Definition at line 175 of file googletest-output-test_.cc.

TEST ( SCOPED_TRACETest  ,
AcceptedValues   
)

Definition at line 181 of file googletest-output-test_.cc.

TEST ( SCOPED_TRACETest  ,
ObeysScopes   
)

Definition at line 192 of file googletest-output-test_.cc.

TEST ( SCOPED_TRACETest  ,
WorksInLoop   
)

Definition at line 211 of file googletest-output-test_.cc.

TEST ( SCOPED_TRACETest  ,
WorksInSubroutine   
)

Definition at line 222 of file googletest-output-test_.cc.

TEST ( SCOPED_TRACETest  ,
CanBeNested   
)

Definition at line 230 of file googletest-output-test_.cc.

TEST ( SCOPED_TRACETest  ,
CanBeRepeated   
)

Definition at line 239 of file googletest-output-test_.cc.

TEST ( ScopedTraceTest  ,
WithExplicitFileAndLine   
)

Definition at line 339 of file googletest-output-test_.cc.

TEST ( DisabledTestsWarningTest  ,
DISABLED_AlsoRunDisabledTestsFlagSuppressesWarning   
)

Definition at line 344 of file googletest-output-test_.cc.

void AdHocTest ( )

Definition at line 355 of file googletest-output-test_.cc.

int RunAllTests ( )

Definition at line 362 of file googletest-output-test_.cc.

TEST_F ( NonFatalFailureInFixtureConstructorTest  ,
FailureInConstructor   
)

Definition at line 386 of file googletest-output-test_.cc.

TEST_F ( FatalFailureInFixtureConstructorTest  ,
FailureInConstructor   
)

Definition at line 420 of file googletest-output-test_.cc.

TEST_F ( NonFatalFailureInSetUpTest  ,
FailureInSetUp   
)

Definition at line 444 of file googletest-output-test_.cc.

TEST_F ( FatalFailureInSetUpTest  ,
FailureInSetUp   
)

Definition at line 466 of file googletest-output-test_.cc.

TEST ( AddFailureAtTest  ,
MessageContainsSpecifiedFileAndLineNumber   
)

Definition at line 471 of file googletest-output-test_.cc.

TEST ( GtestFailAtTest  ,
MessageContainsSpecifiedFileAndLineNumber   
)

Definition at line 475 of file googletest-output-test_.cc.

TEST_F ( TEST_F_before_TEST_in_same_test_case  ,
DefinedUsingTEST_F   
)

Definition at line 533 of file googletest-output-test_.cc.

TEST ( TEST_F_before_TEST_in_same_test_case  ,
DefinedUsingTESTAndShouldFail   
)

Definition at line 537 of file googletest-output-test_.cc.

TEST ( TEST_before_TEST_F_in_same_test_case  ,
DefinedUsingTEST   
)

Definition at line 542 of file googletest-output-test_.cc.

TEST_F ( TEST_before_TEST_F_in_same_test_case  ,
DefinedUsingTEST_FAndShouldFail   
)

Definition at line 546 of file googletest-output-test_.cc.

TEST ( ExpectNonfatalFailureTest  ,
CanReferenceGlobalVariables   
)

Definition at line 553 of file googletest-output-test_.cc.

TEST ( ExpectNonfatalFailureTest  ,
CanReferenceLocalVariables   
)

Definition at line 562 of file googletest-output-test_.cc.

TEST ( ExpectNonfatalFailureTest  ,
SucceedsWhenThereIsOneNonfatalFailure   
)

Definition at line 573 of file googletest-output-test_.cc.

TEST ( ExpectNonfatalFailureTest  ,
FailsWhenThereIsNoNonfatalFailure   
)

Definition at line 581 of file googletest-output-test_.cc.

TEST ( ExpectNonfatalFailureTest  ,
FailsWhenThereAreTwoNonfatalFailures   
)

Definition at line 589 of file googletest-output-test_.cc.

TEST ( ExpectNonfatalFailureTest  ,
FailsWhenThereIsOneFatalFailure   
)

Definition at line 599 of file googletest-output-test_.cc.

TEST ( ExpectNonfatalFailureTest  ,
FailsWhenStatementReturns   
)

Definition at line 608 of file googletest-output-test_.cc.

TEST ( ExpectFatalFailureTest  ,
CanReferenceGlobalVariables   
)

Definition at line 632 of file googletest-output-test_.cc.

TEST ( ExpectFatalFailureTest  ,
CanReferenceLocalStaticVariables   
)

Definition at line 641 of file googletest-output-test_.cc.

TEST ( ExpectFatalFailureTest  ,
SucceedsWhenThereIsOneFatalFailure   
)

Definition at line 651 of file googletest-output-test_.cc.

TEST ( ExpectFatalFailureTest  ,
FailsWhenThereIsNoFatalFailure   
)

Definition at line 659 of file googletest-output-test_.cc.

void FatalFailure ( )

Definition at line 666 of file googletest-output-test_.cc.

TEST ( ExpectFatalFailureTest  ,
FailsWhenThereAreTwoFatalFailures   
)

Definition at line 672 of file googletest-output-test_.cc.

TEST ( ExpectFatalFailureTest  ,
FailsWhenThereIsOneNonfatalFailure   
)

Definition at line 682 of file googletest-output-test_.cc.

TEST ( ExpectFatalFailureTest  ,
FailsWhenStatementReturns   
)

Definition at line 691 of file googletest-output-test_.cc.

std::string ParamNameFunc ( const testing::TestParamInfo< std::string > &  info)

Definition at line 716 of file googletest-output-test_.cc.

TEST_P ( ParamTest  ,
Success   
)

Definition at line 723 of file googletest-output-test_.cc.

TEST_P ( ParamTest  ,
Failure   
)

Definition at line 727 of file googletest-output-test_.cc.

INSTANTIATE_TEST_SUITE_P ( PrintingStrings  ,
ParamTest  ,
testing::  Valuesstd::string("a"),
ParamNameFunc   
)
INSTANTIATE_TEST_SUITE_P ( ThisIsOdd  ,
NoTests  ,
::testing::  Values"Hello" 
)
TEST_P ( DetectNotInstantiatedTest  ,
Used   
)

Definition at line 742 of file googletest-output-test_.cc.

TEST_F ( ExpectFailureTest  ,
ExpectFatalFailure   
)

Definition at line 908 of file googletest-output-test_.cc.

TEST_F ( ExpectFailureTest  ,
ExpectNonFatalFailure   
)

Definition at line 922 of file googletest-output-test_.cc.

TEST_F ( ExpectFailureTest  ,
ExpectFatalFailureOnAllThreads   
)

Definition at line 979 of file googletest-output-test_.cc.

TEST_F ( ExpectFailureTest  ,
ExpectNonFatalFailureOnAllThreads   
)

Definition at line 993 of file googletest-output-test_.cc.

int main ( int  argc,
char **  argv 
)

Definition at line 1086 of file googletest-output-test_.cc.

Variable Documentation

const char kGoldenString[] = "\"Line\0 1\"\nLine 2"
static

Definition at line 107 of file googletest-output-test_.cc.

int global_integer = 0

Definition at line 550 of file googletest-output-test_.cc.

auto dynamic_test

Definition at line 1027 of file googletest-output-test_.cc.