#include "gtest/gtest.h"#include <algorithm>#include <iostream>#include <list>#include <sstream>#include <string>#include <vector>#include "src/gtest-internal-inl.h"#include "test/googletest-param-test-test.h"
Go to the source code of this file.
Classes | |
| class | CommentTest |
| class | CustomFunctionNamingTest |
| class | CustomFunctorNamingTest |
| class | CustomIntegerNamingTest |
| class | CustomLambdaNamingTest |
| struct | CustomParamNameFunctor |
| struct | CustomStruct |
| class | CustomStructNamingTest |
| class | DogAdder |
| class | ExternalGeneratorTest |
| class | GeneratorEvaluationTest |
| class | IntWrapper |
| class | MacroNamingTest |
| class | MacroNamingTestNonParametrized |
| class | MultipleInstantiationTest |
| class | MyEnumTest |
| class | NamingTest |
| class | NonDefaultConstructAssignString |
| class | NonParameterizedBaseTest |
| class | ParameterizedDeathTest |
| class | ParameterizedDerivedTest |
| class | SeparateInstanceTest |
| struct | StatefulNamingFunctor |
| class | StatefulNamingTest |
| class | TestGenerationEnvironment< kExpectedCalls > |
| class | TestGenerationTest |
| class | Unstreamable |
Macros | |
| #define | PREFIX_WITH_FOO(test_name) Foo##test_name |
| #define | PREFIX_WITH_MACRO(test_name) Macro##test_name |
Enumerations | |
| enum | MyEnums { ENUM1 = 1, ENUM2 = 3, ENUM3 = 8 } |
Functions | |
| std::string | CustomParamNameFunction (const ::testing::TestParamInfo< std::string > &inf) |
| INSTANTIATE_TEST_SUITE_P (AllAllowedCharacters, CustomFunctorNamingTest, Values("abcdefghijklmnopqrstuvwxyz", "ABCDEFGHIJKLMNOPQRSTUVWXYZ", "01234567890_"), CustomParamNameFunctor()) | |
| INSTANTIATE_TEST_SUITE_P (CustomParamNameFunction, CustomFunctionNamingTest, Values(std::string("FunctionName")), CustomParamNameFunction) | |
| INSTANTIATE_TEST_SUITE_P (CustomParamNameFunctor, CustomFunctorNamingTest, Values(std::string("FunctorName")), CustomParamNameFunctor()) | |
| INSTANTIATE_TEST_SUITE_P (CustomParamNameLambda, CustomLambdaNamingTest, Values(std::string("LambdaName")), [](const ::testing::TestParamInfo< std::string > &inf) { return inf.param;}) | |
| INSTANTIATE_TEST_SUITE_P (ExternalGeneratorModule, ExternalGeneratorTest, extern_gen) | |
| INSTANTIATE_TEST_SUITE_P (FortyTwo, MacroNamingTest, Values(42)) | |
| INSTANTIATE_TEST_SUITE_P (FourElemSequence, SeparateInstanceTest, Range(1, 4)) | |
| INSTANTIATE_TEST_SUITE_P (GenEvalModule, GeneratorEvaluationTest, Values(GeneratorEvaluationTest::param_value())) | |
| INSTANTIATE_TEST_SUITE_P (InstantiationWithComments, CommentTest, Values(Unstreamable(1))) | |
| INSTANTIATE_TEST_SUITE_P (MyEnumTests, MyEnumTest, ::testing::Values(ENUM1, ENUM2, 0)) | |
| INSTANTIATE_TEST_SUITE_P (PrintToString, CustomIntegerNamingTest, Range(0, 5), ::testing::PrintToStringParamName()) | |
| INSTANTIATE_TEST_SUITE_P (PrintToString, CustomStructNamingTest, Values(CustomStruct(0), CustomStruct(1)), ::testing::PrintToStringParamName()) | |
| INSTANTIATE_TEST_SUITE_P (RangeZeroToFive, ParameterizedDerivedTest, Range(0, 5)) | |
| INSTANTIATE_TEST_SUITE_P (Sequence1, InstantiationInMultipleTranslationUnitsTest, Values(42, 42 *2)) | |
| INSTANTIATE_TEST_SUITE_P (Sequence1, MultipleInstantiationTest, Values(1, 2)) | |
| INSTANTIATE_TEST_SUITE_P (Sequence2, MultipleInstantiationTest, Range(3, 5)) | |
| INSTANTIATE_TEST_SUITE_P (StatefulNamingFunctor, StatefulNamingTest, Range(0, 5), StatefulNamingFunctor()) | |
| INSTANTIATE_TEST_SUITE_P (TestExpansionModule, TestGenerationTest, ValuesIn(test_generation_params)) | |
| INSTANTIATE_TEST_SUITE_P (ZeroToFiveSequence, NamingTest, Range(0, 5)) | |
| int | main (int argc, char **argv) |
| std::ostream & | operator<< (std::ostream &stream, const CustomStruct &val) |
| template<typename T > | |
| ::std::string | PrintValue (const T &value) |
| TEST (BoolTest, BoolWorks) | |
| TEST (CombineTest, CombineWithFirstParameterEmptyRange) | |
| TEST (CombineTest, CombineWithFirstParameterSingleValue) | |
| TEST (CombineTest, CombineWithMaxNumberOfParameters) | |
| TEST (CombineTest, CombineWithSecondParameterEmptyRange) | |
| TEST (CombineTest, CombineWithSecondParameterSingleValue) | |
| TEST (CombineTest, CombineWithThreeParameters) | |
| TEST (CombineTest, CombineWithTwoParameters) | |
| TEST (CombineTest, NonDefaultConstructAssign) | |
| TEST (CustomNamingTest, CheckNameRegistry) | |
| TEST (IteratorTest, ParamIteratorConformsToForwardIteratorConcept) | |
| TEST (ParamGeneratorTest, AssignmentWorks) | |
| TEST (RangeTest, IntRangeEmpty) | |
| TEST (RangeTest, IntRangeSingleValue) | |
| TEST (RangeTest, IntRangeWithCustomStep) | |
| TEST (RangeTest, IntRangeWithCustomStepOverUpperBound) | |
| TEST (RangeTest, IntRangeWithDefaultStep) | |
| TEST (RangeTest, WorksWithACustomType) | |
| TEST (RangeTest, WorksWithACustomTypeWithDifferentIncrementType) | |
| TEST (ValuesInTest, ValuesInArray) | |
| TEST (ValuesInTest, ValuesInConstArray) | |
| TEST (ValuesInTest, ValuesInEmptyIteratorRange) | |
| TEST (ValuesInTest, ValuesInIteratorRange) | |
| TEST (ValuesInTest, ValuesInSingleElementArray) | |
| TEST (ValuesInTest, ValuesInSingleElementIteratorRange) | |
| TEST (ValuesInTest, ValuesInVector) | |
| TEST (ValuesTest, ValuesWithSingleParameter) | |
| TEST (ValuesTest, ValuesWorks) | |
| TEST (ValuesTest, ValuesWorksForMaxLengthList) | |
| TEST (ValuesTest, ValuesWorksForValuesOfCompatibleTypes) | |
| TEST_F (NonParameterizedBaseTest, FixtureIsInitialized) | |
| TEST_F (ParameterizedDeathTest, GetParamDiesFromTestF) | |
| TEST_F (PREFIX_WITH_MACRO(NamingTestNonParametrized), PREFIX_WITH_FOO(SomeTestName)) | |
| TEST_P (CommentTest, TestsCorrectlyReportUnstreamableParams) | |
| TEST_P (CustomFunctionNamingTest, CustomTestNames) | |
| TEST_P (CustomFunctorNamingTest, CustomTestNames) | |
| TEST_P (CustomIntegerNamingTest, TestsReportCorrectNames) | |
| TEST_P (CustomLambdaNamingTest, CustomTestNames) | |
| TEST_P (CustomStructNamingTest, TestsReportCorrectNames) | |
| TEST_P (ExternalGeneratorTest, ExternalGenerator) | |
| TEST_P (ExternalInstantiationTest, IsMultipleOf33) | |
| TEST_P (GeneratorEvaluationTest, GeneratorsEvaluatedInMain) | |
| TEST_P (InstantiationInMultipleTranslationUnitsTest, IsMultipleOf42) | |
| TEST_P (MultipleInstantiationTest, AllowsMultipleInstances) | |
| TEST_P (MyEnumTest, ChecksParamMoreThanZero) | |
| TEST_P (NamingTest, TestsReportCorrectNamesAndParameters) | |
| TEST_P (ParameterizedDerivedTest, SeesSequence) | |
| TEST_P (PREFIX_WITH_MACRO(NamingTest), PREFIX_WITH_FOO(SomeTestName)) | |
| TEST_P (SeparateInstanceTest, TestsRunInSeparateInstances) | |
| TEST_P (StatefulNamingTest, TestsReportCorrectNames) | |
| TEST_P (TestGenerationTest, TestsExpandedAndRun) | |
| template<typename T , size_t N> | |
| void | VerifyGenerator (const ParamGenerator< T > &generator, const T(&expected_values)[N]) |
| template<typename T > | |
| void | VerifyGeneratorIsEmpty (const ParamGenerator< T > &generator) |
Variables | |
| ParamGenerator< int > | extern_gen |
| const int | test_generation_params [] = {36, 42, 72} |
| #define PREFIX_WITH_FOO | ( | test_name | ) | Foo##test_name |
Definition at line 797 of file googletest-param-test-test.cc.
| #define PREFIX_WITH_MACRO | ( | test_name | ) | Macro##test_name |
Definition at line 798 of file googletest-param-test-test.cc.
| enum MyEnums |
| Enumerator | |
|---|---|
| ENUM1 | |
| ENUM2 | |
| ENUM3 | |
Definition at line 1021 of file googletest-param-test-test.cc.
|
inline |
Definition at line 844 of file googletest-param-test-test.cc.
| INSTANTIATE_TEST_SUITE_P | ( | AllAllowedCharacters | , |
| CustomFunctorNamingTest | , | ||
| Values("abcdefghijklmnopqrstuvwxyz", "ABCDEFGHIJKLMNOPQRSTUVWXYZ", "01234567890_") | , | ||
| CustomParamNameFunctor() | |||
| ) |
| INSTANTIATE_TEST_SUITE_P | ( | CustomParamNameFunction | , |
| CustomFunctionNamingTest | , | ||
| Values(std::string("FunctionName")) | , | ||
| CustomParamNameFunction | |||
| ) |
| INSTANTIATE_TEST_SUITE_P | ( | CustomParamNameFunctor | , |
| CustomFunctorNamingTest | , | ||
| Values(std::string("FunctorName")) | , | ||
| CustomParamNameFunctor() | |||
| ) |
| INSTANTIATE_TEST_SUITE_P | ( | CustomParamNameLambda | , |
| CustomLambdaNamingTest | , | ||
| Values(std::string("LambdaName")) | , | ||
| [] (const ::testing::TestParamInfo< std::string > &inf) { return inf.param;} | |||
| ) |
| INSTANTIATE_TEST_SUITE_P | ( | ExternalGeneratorModule | , |
| ExternalGeneratorTest | , | ||
| extern_gen | |||
| ) |
| INSTANTIATE_TEST_SUITE_P | ( | FortyTwo | , |
| MacroNamingTest | , | ||
| Values(42) | |||
| ) |
| INSTANTIATE_TEST_SUITE_P | ( | FourElemSequence | , |
| SeparateInstanceTest | , | ||
| Range(1, 4) | |||
| ) |
| INSTANTIATE_TEST_SUITE_P | ( | GenEvalModule | , |
| GeneratorEvaluationTest | , | ||
| Values(GeneratorEvaluationTest::param_value()) | |||
| ) |
| INSTANTIATE_TEST_SUITE_P | ( | InstantiationWithComments | , |
| CommentTest | , | ||
| Values(Unstreamable(1)) | |||
| ) |
| INSTANTIATE_TEST_SUITE_P | ( | MyEnumTests | , |
| MyEnumTest | , | ||
| ::testing::Values(ENUM1, ENUM2, 0) | |||
| ) |
| INSTANTIATE_TEST_SUITE_P | ( | PrintToString | , |
| CustomIntegerNamingTest | , | ||
| Range(0, 5) | , | ||
| ::testing::PrintToStringParamName() | |||
| ) |
| INSTANTIATE_TEST_SUITE_P | ( | PrintToString | , |
| CustomStructNamingTest | , | ||
| Values(CustomStruct(0), CustomStruct(1)) | , | ||
| ::testing::PrintToStringParamName() | |||
| ) |
| INSTANTIATE_TEST_SUITE_P | ( | RangeZeroToFive | , |
| ParameterizedDerivedTest | , | ||
| Range(0, 5) | |||
| ) |
| INSTANTIATE_TEST_SUITE_P | ( | Sequence1 | , |
| InstantiationInMultipleTranslationUnitsTest | , | ||
| Values(42, 42 *2) | |||
| ) |
| INSTANTIATE_TEST_SUITE_P | ( | Sequence1 | , |
| MultipleInstantiationTest | , | ||
| Values(1, 2) | |||
| ) |
| INSTANTIATE_TEST_SUITE_P | ( | Sequence2 | , |
| MultipleInstantiationTest | , | ||
| Range(3, 5) | |||
| ) |
| INSTANTIATE_TEST_SUITE_P | ( | StatefulNamingFunctor | , |
| StatefulNamingTest | , | ||
| Range(0, 5) | , | ||
| StatefulNamingFunctor() | |||
| ) |
| INSTANTIATE_TEST_SUITE_P | ( | TestExpansionModule | , |
| TestGenerationTest | , | ||
| ValuesIn(test_generation_params) | |||
| ) |
| INSTANTIATE_TEST_SUITE_P | ( | ZeroToFiveSequence | , |
| NamingTest | , | ||
| Range(0, 5) | |||
| ) |
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 1033 of file googletest-param-test-test.cc.
| std::ostream& operator<< | ( | std::ostream & | stream, |
| const CustomStruct & | val | ||
| ) |
Definition at line 906 of file googletest-param-test-test.cc.
| ::std::string PrintValue | ( | const T & | value | ) |
Definition at line 69 of file googletest-param-test-test.cc.
| TEST | ( | BoolTest | , |
| BoolWorks | |||
| ) |
Definition at line 400 of file googletest-param-test-test.cc.
| TEST | ( | CombineTest | , |
| CombineWithFirstParameterEmptyRange | |||
| ) |
Definition at line 458 of file googletest-param-test-test.cc.
| TEST | ( | CombineTest | , |
| CombineWithFirstParameterSingleValue | |||
| ) |
Definition at line 435 of file googletest-param-test-test.cc.
| TEST | ( | CombineTest | , |
| CombineWithMaxNumberOfParameters | |||
| ) |
Definition at line 474 of file googletest-param-test-test.cc.
| TEST | ( | CombineTest | , |
| CombineWithSecondParameterEmptyRange | |||
| ) |
Definition at line 466 of file googletest-param-test-test.cc.
| TEST | ( | CombineTest | , |
| CombineWithSecondParameterSingleValue | |||
| ) |
Definition at line 447 of file googletest-param-test-test.cc.
| TEST | ( | CombineTest | , |
| CombineWithThreeParameters | |||
| ) |
Definition at line 421 of file googletest-param-test-test.cc.
| TEST | ( | CombineTest | , |
| CombineWithTwoParameters | |||
| ) |
Definition at line 408 of file googletest-param-test-test.cc.
| TEST | ( | CombineTest | , |
| NonDefaultConstructAssign | |||
| ) |
Definition at line 504 of file googletest-param-test-test.cc.
| TEST | ( | CustomNamingTest | , |
| CheckNameRegistry | |||
| ) |
Definition at line 867 of file googletest-param-test-test.cc.
| TEST | ( | IteratorTest | , |
| ParamIteratorConformsToForwardIteratorConcept | |||
| ) |
Definition at line 136 of file googletest-param-test-test.cc.
| TEST | ( | ParamGeneratorTest | , |
| AssignmentWorks | |||
| ) |
Definition at line 534 of file googletest-param-test-test.cc.
| TEST | ( | RangeTest | , |
| IntRangeEmpty | |||
| ) |
Definition at line 187 of file googletest-param-test-test.cc.
| TEST | ( | RangeTest | , |
| IntRangeSingleValue | |||
| ) |
Definition at line 179 of file googletest-param-test-test.cc.
| TEST | ( | RangeTest | , |
| IntRangeWithCustomStep | |||
| ) |
Definition at line 194 of file googletest-param-test-test.cc.
| TEST | ( | RangeTest | , |
| IntRangeWithCustomStepOverUpperBound | |||
| ) |
Definition at line 204 of file googletest-param-test-test.cc.
| TEST | ( | RangeTest | , |
| IntRangeWithDefaultStep | |||
| ) |
Definition at line 171 of file googletest-param-test-test.cc.
| TEST | ( | RangeTest | , |
| WorksWithACustomType | |||
| ) |
Definition at line 236 of file googletest-param-test-test.cc.
| TEST | ( | RangeTest | , |
| WorksWithACustomTypeWithDifferentIncrementType | |||
| ) |
Definition at line 270 of file googletest-param-test-test.cc.
| TEST | ( | ValuesInTest | , |
| ValuesInArray | |||
| ) |
Definition at line 285 of file googletest-param-test-test.cc.
| TEST | ( | ValuesInTest | , |
| ValuesInConstArray | |||
| ) |
Definition at line 293 of file googletest-param-test-test.cc.
| TEST | ( | ValuesInTest | , |
| ValuesInEmptyIteratorRange | |||
| ) |
Definition at line 348 of file googletest-param-test-test.cc.
| TEST | ( | ValuesInTest | , |
| ValuesInIteratorRange | |||
| ) |
Definition at line 322 of file googletest-param-test-test.cc.
| TEST | ( | ValuesInTest | , |
| ValuesInSingleElementArray | |||
| ) |
Definition at line 301 of file googletest-param-test-test.cc.
| TEST | ( | ValuesInTest | , |
| ValuesInSingleElementIteratorRange | |||
| ) |
Definition at line 336 of file googletest-param-test-test.cc.
| TEST | ( | ValuesInTest | , |
| ValuesInVector | |||
| ) |
Definition at line 309 of file googletest-param-test-test.cc.
| TEST | ( | ValuesTest | , |
| ValuesWithSingleParameter | |||
| ) |
Definition at line 392 of file googletest-param-test-test.cc.
| TEST | ( | ValuesTest | , |
| ValuesWorks | |||
| ) |
Definition at line 357 of file googletest-param-test-test.cc.
| TEST | ( | ValuesTest | , |
| ValuesWorksForMaxLengthList | |||
| ) |
Definition at line 373 of file googletest-param-test-test.cc.
| TEST | ( | ValuesTest | , |
| ValuesWorksForValuesOfCompatibleTypes | |||
| ) |
Definition at line 366 of file googletest-param-test-test.cc.
| TEST_F | ( | NonParameterizedBaseTest | , |
| FixtureIsInitialized | |||
| ) |
Definition at line 1000 of file googletest-param-test-test.cc.
| TEST_F | ( | ParameterizedDeathTest | , |
| GetParamDiesFromTestF | |||
| ) |
Definition at line 1012 of file googletest-param-test-test.cc.
| TEST_F | ( | PREFIX_WITH_MACRO(NamingTestNonParametrized) | , |
| PREFIX_WITH_FOO(SomeTestName) | |||
| ) |
Definition at line 813 of file googletest-param-test-test.cc.
| TEST_P | ( | CommentTest | , |
| TestsCorrectlyReportUnstreamableParams | |||
| ) |
Definition at line 969 of file googletest-param-test-test.cc.
| TEST_P | ( | CustomFunctionNamingTest | , |
| CustomTestNames | |||
| ) |
Definition at line 850 of file googletest-param-test-test.cc.
| TEST_P | ( | CustomFunctorNamingTest | , |
| CustomTestNames | |||
| ) |
Definition at line 827 of file googletest-param-test-test.cc.
| TEST_P | ( | CustomIntegerNamingTest | , |
| TestsReportCorrectNames | |||
| ) |
Definition at line 888 of file googletest-param-test-test.cc.
| TEST_P | ( | CustomLambdaNamingTest | , |
| CustomTestNames | |||
| ) |
Definition at line 859 of file googletest-param-test-test.cc.
| TEST_P | ( | CustomStructNamingTest | , |
| TestsReportCorrectNames | |||
| ) |
Definition at line 913 of file googletest-param-test-test.cc.
| TEST_P | ( | ExternalGeneratorTest | , |
| ExternalGenerator | |||
| ) |
Definition at line 711 of file googletest-param-test-test.cc.
| TEST_P | ( | ExternalInstantiationTest | , |
| IsMultipleOf33 | |||
| ) |
Definition at line 723 of file googletest-param-test-test.cc.
| TEST_P | ( | GeneratorEvaluationTest | , |
| GeneratorsEvaluatedInMain | |||
| ) |
Definition at line 701 of file googletest-param-test-test.cc.
| TEST_P | ( | InstantiationInMultipleTranslationUnitsTest | , |
| IsMultipleOf42 | |||
| ) |
Definition at line 740 of file googletest-param-test-test.cc.
| TEST_P | ( | MultipleInstantiationTest | , |
| AllowsMultipleInstances | |||
| ) |
Definition at line 730 of file googletest-param-test-test.cc.
| TEST_P | ( | MyEnumTest | , |
| ChecksParamMoreThanZero | |||
| ) |
Definition at line 1029 of file googletest-param-test-test.cc.
| TEST_P | ( | NamingTest | , |
| TestsReportCorrectNamesAndParameters | |||
| ) |
Definition at line 779 of file googletest-param-test-test.cc.
| TEST_P | ( | ParameterizedDerivedTest | , |
| SeesSequence | |||
| ) |
Definition at line 1004 of file googletest-param-test-test.cc.
| TEST_P | ( | PREFIX_WITH_MACRO(NamingTest) | , |
| PREFIX_WITH_FOO(SomeTestName) | |||
| ) |
Definition at line 800 of file googletest-param-test-test.cc.
| TEST_P | ( | SeparateInstanceTest | , |
| TestsRunInSeparateInstances | |||
| ) |
Definition at line 766 of file googletest-param-test-test.cc.
| TEST_P | ( | StatefulNamingTest | , |
| TestsReportCorrectNames | |||
| ) |
Definition at line 943 of file googletest-param-test-test.cc.
| TEST_P | ( | TestGenerationTest | , |
| TestsExpandedAndRun | |||
| ) |
Definition at line 673 of file googletest-param-test-test.cc.
| void VerifyGenerator | ( | const ParamGenerator< T > & | generator, |
| const T(&) | expected_values[N] | ||
| ) |
Definition at line 77 of file googletest-param-test-test.cc.
Definition at line 119 of file googletest-param-test-test.cc.
| ParamGenerator<int> extern_gen |
Definition at line 43 of file googletest-param-test2-test.cc.
| const int test_generation_params[] = {36, 42, 72} |
Definition at line 607 of file googletest-param-test-test.cc.