|
Wire Sysio Wire Sysion 1.0.0
|
#include "gtest/gtest.h"#include <algorithm>#include <iostream>#include <list>#include <sstream>#include <string>#include <vector>#include "src/gtest-internal-inl.h"#include "test/gtest-param-test_test.h"
Go to the source code of this file.
Classes | |
| class | DogAdder |
| class | IntWrapper |
| class | TestGenerationEnvironment< kExpectedCalls > |
| class | TestGenerationTest |
| class | GeneratorEvaluationTest |
| class | ExternalGeneratorTest |
| class | MultipleInstantiationTest |
| class | SeparateInstanceTest |
| class | NamingTest |
| class | MacroNamingTest |
| class | MacroNamingTestNonParametrized |
| class | CustomFunctorNamingTest |
| struct | CustomParamNameFunctor |
| class | CustomFunctionNamingTest |
| class | CustomIntegerNamingTest |
| struct | CustomStruct |
| class | CustomStructNamingTest |
| struct | StatefulNamingFunctor |
| class | StatefulNamingTest |
| class | Unstreamable |
| class | CommentTest |
| class | NonParameterizedBaseTest |
| class | ParameterizedDerivedTest |
| class | ParameterizedDeathTest |
Macros | |
| #define | PREFIX_WITH_FOO(test_name) |
| #define | PREFIX_WITH_MACRO(test_name) |
Functions | |
| template<typename T > | |
| ::std::string | PrintValue (const T &value) |
| 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) |
| TEST (IteratorTest, ParamIteratorConformsToForwardIteratorConcept) | |
| TEST (RangeTest, IntRangeWithDefaultStep) | |
| TEST (RangeTest, IntRangeSingleValue) | |
| TEST (RangeTest, IntRangeEmpty) | |
| TEST (RangeTest, IntRangeWithCustomStep) | |
| TEST (RangeTest, IntRangeWithCustomStepOverUpperBound) | |
| TEST (RangeTest, WorksWithACustomType) | |
| TEST (RangeTest, WorksWithACustomTypeWithDifferentIncrementType) | |
| TEST (ValuesInTest, ValuesInArray) | |
| TEST (ValuesInTest, ValuesInConstArray) | |
| TEST (ValuesInTest, ValuesInSingleElementArray) | |
| TEST (ValuesInTest, ValuesInVector) | |
| TEST (ValuesInTest, ValuesInIteratorRange) | |
| TEST (ValuesInTest, ValuesInSingleElementIteratorRange) | |
| TEST (ValuesInTest, ValuesInEmptyIteratorRange) | |
| TEST (ValuesTest, ValuesWorks) | |
| TEST (ValuesTest, ValuesWorksForValuesOfCompatibleTypes) | |
| TEST (ValuesTest, ValuesWorksForMaxLengthList) | |
| TEST (ValuesTest, ValuesWithSingleParameter) | |
| TEST (BoolTest, BoolWorks) | |
| TEST (ParamGeneratorTest, AssignmentWorks) | |
| TEST_P (TestGenerationTest, TestsExpandedAndRun) | |
| INSTANTIATE_TEST_CASE_P (TestExpansionModule, TestGenerationTest, ValuesIn(test_generation_params)) | |
| TEST_P (GeneratorEvaluationTest, GeneratorsEvaluatedInMain) | |
| INSTANTIATE_TEST_CASE_P (GenEvalModule, GeneratorEvaluationTest, Values(GeneratorEvaluationTest::param_value())) | |
| TEST_P (ExternalGeneratorTest, ExternalGenerator) | |
| INSTANTIATE_TEST_CASE_P (ExternalGeneratorModule, ExternalGeneratorTest, extern_gen) | |
| TEST_P (ExternalInstantiationTest, IsMultipleOf33) | |
| TEST_P (MultipleInstantiationTest, AllowsMultipleInstances) | |
| INSTANTIATE_TEST_CASE_P (Sequence1, MultipleInstantiationTest, Values(1, 2)) | |
| INSTANTIATE_TEST_CASE_P (Sequence2, MultipleInstantiationTest, Range(3, 5)) | |
| TEST_P (InstantiationInMultipleTranslaionUnitsTest, IsMultipleOf42) | |
| INSTANTIATE_TEST_CASE_P (Sequence1, InstantiationInMultipleTranslaionUnitsTest, Values(42, 42 *2)) | |
| TEST_P (SeparateInstanceTest, TestsRunInSeparateInstances) | |
| INSTANTIATE_TEST_CASE_P (FourElemSequence, SeparateInstanceTest, Range(1, 4)) | |
| TEST_P (NamingTest, TestsReportCorrectNamesAndParameters) | |
| INSTANTIATE_TEST_CASE_P (ZeroToFiveSequence, NamingTest, Range(0, 5)) | |
| TEST_P (PREFIX_WITH_MACRO(NamingTest), PREFIX_WITH_FOO(SomeTestName)) | |
| INSTANTIATE_TEST_CASE_P (FortyTwo, MacroNamingTest, Values(42)) | |
| TEST_F (PREFIX_WITH_MACRO(NamingTestNonParametrized), PREFIX_WITH_FOO(SomeTestName)) | |
| TEST_P (CustomFunctorNamingTest, CustomTestNames) | |
| INSTANTIATE_TEST_CASE_P (CustomParamNameFunctor, CustomFunctorNamingTest, Values(std::string("FunctorName")), CustomParamNameFunctor()) | |
| INSTANTIATE_TEST_CASE_P (AllAllowedCharacters, CustomFunctorNamingTest, Values("abcdefghijklmnopqrstuvwxyz", "ABCDEFGHIJKLMNOPQRSTUVWXYZ", "01234567890_"), CustomParamNameFunctor()) | |
| std::string | CustomParamNameFunction (const ::testing::TestParamInfo< std::string > &inf) |
| TEST_P (CustomFunctionNamingTest, CustomTestNames) | |
| INSTANTIATE_TEST_CASE_P (CustomParamNameFunction, CustomFunctionNamingTest, Values(std::string("FunctionName")), CustomParamNameFunction) | |
| TEST (CustomNamingTest, CheckNameRegistry) | |
| TEST_P (CustomIntegerNamingTest, TestsReportCorrectNames) | |
| INSTANTIATE_TEST_CASE_P (PrintToString, CustomIntegerNamingTest, Range(0, 5), ::testing::PrintToStringParamName()) | |
| std::ostream & | operator<< (std::ostream &stream, const CustomStruct &val) |
| TEST_P (CustomStructNamingTest, TestsReportCorrectNames) | |
| INSTANTIATE_TEST_CASE_P (PrintToString, CustomStructNamingTest, Values(CustomStruct(0), CustomStruct(1)), ::testing::PrintToStringParamName()) | |
| TEST_P (StatefulNamingTest, TestsReportCorrectNames) | |
| INSTANTIATE_TEST_CASE_P (StatefulNamingFunctor, StatefulNamingTest, Range(0, 5), StatefulNamingFunctor()) | |
| TEST_P (CommentTest, TestsCorrectlyReportUnstreamableParams) | |
| INSTANTIATE_TEST_CASE_P (InstantiationWithComments, CommentTest, Values(Unstreamable(1))) | |
| TEST_F (NonParameterizedBaseTest, FixtureIsInitialized) | |
| TEST_P (ParameterizedDerivedTest, SeesSequence) | |
| TEST_F (ParameterizedDeathTest, GetParamDiesFromTestF) | |
| INSTANTIATE_TEST_CASE_P (RangeZeroToFive, ParameterizedDerivedTest, Range(0, 5)) | |
| int | main (int argc, char **argv) |
Variables | |
| const int | test_generation_params [] = {36, 42, 72} |
| ParamGenerator< int > | extern_gen |
| #define PREFIX_WITH_FOO | ( | test_name | ) |
Definition at line 854 of file gtest-param-test_test.cc.
| #define PREFIX_WITH_MACRO | ( | test_name | ) |
Definition at line 855 of file gtest-param-test_test.cc.
|
inline |
Definition at line 904 of file gtest-param-test_test.cc.
| INSTANTIATE_TEST_CASE_P | ( | AllAllowedCharacters | , |
| CustomFunctorNamingTest | , | ||
| Values("abcdefghijklmnopqrstuvwxyz", "ABCDEFGHIJKLMNOPQRSTUVWXYZ", "01234567890_") | , | ||
| CustomParamNameFunctor() | ) |
| INSTANTIATE_TEST_CASE_P | ( | CustomParamNameFunction | , |
| CustomFunctionNamingTest | , | ||
| Values(std::string("FunctionName")) | , | ||
| CustomParamNameFunction | ) |
| INSTANTIATE_TEST_CASE_P | ( | CustomParamNameFunctor | , |
| CustomFunctorNamingTest | , | ||
| Values(std::string("FunctorName")) | , | ||
| CustomParamNameFunctor() | ) |
| INSTANTIATE_TEST_CASE_P | ( | ExternalGeneratorModule | , |
| ExternalGeneratorTest | , | ||
| extern_gen | ) |
| INSTANTIATE_TEST_CASE_P | ( | FortyTwo | , |
| MacroNamingTest | , | ||
| Values(42) | ) |
| INSTANTIATE_TEST_CASE_P | ( | FourElemSequence | , |
| SeparateInstanceTest | , | ||
| Range(1, 4) | ) |
| INSTANTIATE_TEST_CASE_P | ( | GenEvalModule | , |
| GeneratorEvaluationTest | , | ||
| Values(GeneratorEvaluationTest::param_value()) | ) |
| INSTANTIATE_TEST_CASE_P | ( | InstantiationWithComments | , |
| CommentTest | , | ||
| Values(Unstreamable(1)) | ) |
| INSTANTIATE_TEST_CASE_P | ( | PrintToString | , |
| CustomIntegerNamingTest | , | ||
| Range(0, 5) | , | ||
| ::testing::PrintToStringParamName() | ) |
| INSTANTIATE_TEST_CASE_P | ( | PrintToString | , |
| CustomStructNamingTest | , | ||
| Values(CustomStruct(0), CustomStruct(1)) | , | ||
| ::testing::PrintToStringParamName() | ) |
| INSTANTIATE_TEST_CASE_P | ( | RangeZeroToFive | , |
| ParameterizedDerivedTest | , | ||
| Range(0, 5) | ) |
| INSTANTIATE_TEST_CASE_P | ( | Sequence1 | , |
| InstantiationInMultipleTranslaionUnitsTest | , | ||
| Values(42, 42 *2) | ) |
| INSTANTIATE_TEST_CASE_P | ( | Sequence1 | , |
| MultipleInstantiationTest | , | ||
| Values(1, 2) | ) |
| INSTANTIATE_TEST_CASE_P | ( | Sequence2 | , |
| MultipleInstantiationTest | , | ||
| Range(3, 5) | ) |
| INSTANTIATE_TEST_CASE_P | ( | StatefulNamingFunctor | , |
| StatefulNamingTest | , | ||
| Range(0, 5) | , | ||
| StatefulNamingFunctor() | ) |
| INSTANTIATE_TEST_CASE_P | ( | TestExpansionModule | , |
| TestGenerationTest | , | ||
| ValuesIn(test_generation_params) | ) |
| INSTANTIATE_TEST_CASE_P | ( | ZeroToFiveSequence | , |
| NamingTest | , | ||
| Range(0, 5) | ) |
| int main | ( | int | argc, |
| char ** | argv ) |
Definition at line 1095 of file gtest-param-test_test.cc.

| std::ostream & operator<< | ( | std::ostream & | stream, |
| const CustomStruct & | val ) |
Definition at line 977 of file gtest-param-test_test.cc.
Definition at line 76 of file gtest-param-test_test.cc.

| TEST | ( | BoolTest | , |
| BoolWorks | ) |
Definition at line 447 of file gtest-param-test_test.cc.

| TEST | ( | CustomNamingTest | , |
| CheckNameRegistry | ) |
Definition at line 932 of file gtest-param-test_test.cc.

| TEST | ( | IteratorTest | , |
| ParamIteratorConformsToForwardIteratorConcept | ) |
Definition at line 183 of file gtest-param-test_test.cc.
| TEST | ( | ParamGeneratorTest | , |
| AssignmentWorks | ) |
Definition at line 588 of file gtest-param-test_test.cc.

| TEST | ( | RangeTest | , |
| IntRangeEmpty | ) |
Definition at line 234 of file gtest-param-test_test.cc.

| TEST | ( | RangeTest | , |
| IntRangeSingleValue | ) |
Definition at line 226 of file gtest-param-test_test.cc.

| TEST | ( | RangeTest | , |
| IntRangeWithCustomStep | ) |
Definition at line 241 of file gtest-param-test_test.cc.

| TEST | ( | RangeTest | , |
| IntRangeWithCustomStepOverUpperBound | ) |
Definition at line 251 of file gtest-param-test_test.cc.

| TEST | ( | RangeTest | , |
| IntRangeWithDefaultStep | ) |
Definition at line 218 of file gtest-param-test_test.cc.

| TEST | ( | RangeTest | , |
| WorksWithACustomType | ) |
Definition at line 283 of file gtest-param-test_test.cc.
| TEST | ( | RangeTest | , |
| WorksWithACustomTypeWithDifferentIncrementType | ) |
Definition at line 317 of file gtest-param-test_test.cc.
| TEST | ( | ValuesInTest | , |
| ValuesInArray | ) |
Definition at line 332 of file gtest-param-test_test.cc.

| TEST | ( | ValuesInTest | , |
| ValuesInConstArray | ) |
Definition at line 340 of file gtest-param-test_test.cc.

| TEST | ( | ValuesInTest | , |
| ValuesInEmptyIteratorRange | ) |
Definition at line 395 of file gtest-param-test_test.cc.

| TEST | ( | ValuesInTest | , |
| ValuesInIteratorRange | ) |
Definition at line 369 of file gtest-param-test_test.cc.

| TEST | ( | ValuesInTest | , |
| ValuesInSingleElementArray | ) |
Definition at line 348 of file gtest-param-test_test.cc.

| TEST | ( | ValuesInTest | , |
| ValuesInSingleElementIteratorRange | ) |
Definition at line 383 of file gtest-param-test_test.cc.

| TEST | ( | ValuesInTest | , |
| ValuesInVector | ) |
Definition at line 356 of file gtest-param-test_test.cc.

| TEST | ( | ValuesTest | , |
| ValuesWithSingleParameter | ) |
Definition at line 439 of file gtest-param-test_test.cc.

| TEST | ( | ValuesTest | , |
| ValuesWorks | ) |
Definition at line 404 of file gtest-param-test_test.cc.

| TEST | ( | ValuesTest | , |
| ValuesWorksForMaxLengthList | ) |
Definition at line 420 of file gtest-param-test_test.cc.

| TEST | ( | ValuesTest | , |
| ValuesWorksForValuesOfCompatibleTypes | ) |
Definition at line 413 of file gtest-param-test_test.cc.

| TEST_F | ( | NonParameterizedBaseTest | , |
| FixtureIsInitialized | ) |
Definition at line 1075 of file gtest-param-test_test.cc.
| TEST_F | ( | ParameterizedDeathTest | , |
| GetParamDiesFromTestF | ) |
Definition at line 1087 of file gtest-param-test_test.cc.
| TEST_F | ( | PREFIX_WITH_MACRO(NamingTestNonParametrized) | , |
| PREFIX_WITH_FOO(SomeTestName) | ) |
Definition at line 870 of file gtest-param-test_test.cc.

| TEST_P | ( | CommentTest | , |
| TestsCorrectlyReportUnstreamableParams | ) |
Definition at line 1043 of file gtest-param-test_test.cc.

| TEST_P | ( | CustomFunctionNamingTest | , |
| CustomTestNames | ) |
Definition at line 910 of file gtest-param-test_test.cc.
| TEST_P | ( | CustomFunctorNamingTest | , |
| CustomTestNames | ) |
Definition at line 884 of file gtest-param-test_test.cc.
| TEST_P | ( | CustomIntegerNamingTest | , |
| TestsReportCorrectNames | ) |
Definition at line 957 of file gtest-param-test_test.cc.

| TEST_P | ( | CustomStructNamingTest | , |
| TestsReportCorrectNames | ) |
Definition at line 984 of file gtest-param-test_test.cc.

| TEST_P | ( | ExternalGeneratorTest | , |
| ExternalGenerator | ) |
Definition at line 766 of file gtest-param-test_test.cc.
| TEST_P | ( | ExternalInstantiationTest | , |
| IsMultipleOf33 | ) |
Definition at line 779 of file gtest-param-test_test.cc.
| TEST_P | ( | GeneratorEvaluationTest | , |
| GeneratorsEvaluatedInMain | ) |
Definition at line 755 of file gtest-param-test_test.cc.
| TEST_P | ( | InstantiationInMultipleTranslaionUnitsTest | , |
| IsMultipleOf42 | ) |
Definition at line 796 of file gtest-param-test_test.cc.
| TEST_P | ( | MultipleInstantiationTest | , |
| AllowsMultipleInstances | ) |
Definition at line 786 of file gtest-param-test_test.cc.
| TEST_P | ( | NamingTest | , |
| TestsReportCorrectNamesAndParameters | ) |
Definition at line 836 of file gtest-param-test_test.cc.

| TEST_P | ( | ParameterizedDerivedTest | , |
| SeesSequence | ) |
Definition at line 1079 of file gtest-param-test_test.cc.
| TEST_P | ( | PREFIX_WITH_MACRO(NamingTest) | , |
| PREFIX_WITH_FOO(SomeTestName) | ) |
Definition at line 857 of file gtest-param-test_test.cc.

| TEST_P | ( | SeparateInstanceTest | , |
| TestsRunInSeparateInstances | ) |
Definition at line 823 of file gtest-param-test_test.cc.
| TEST_P | ( | StatefulNamingTest | , |
| TestsReportCorrectNames | ) |
Definition at line 1015 of file gtest-param-test_test.cc.

| TEST_P | ( | TestGenerationTest | , |
| TestsExpandedAndRun | ) |
Definition at line 727 of file gtest-param-test_test.cc.
| void VerifyGenerator | ( | const ParamGenerator< T > & | generator, |
| const T(&) | expected_values[N] ) |
Definition at line 124 of file gtest-param-test_test.cc.


Definition at line 166 of file gtest-param-test_test.cc.

|
extern |
Definition at line 44 of file gtest-param-test2_test.cc.
| const int test_generation_params[] = {36, 42, 72} |
Definition at line 661 of file gtest-param-test_test.cc.