- 3.0.1 core module.
|
Public Member Functions | |
def | TestHelpFlag (self, flag) |
def | TestNonHelpFlag (self, flag) |
def | testPrintsHelpWithFullFlag (self) |
def | testPrintsHelpWithShortFlag (self) |
def | testPrintsHelpWithQuestionFlag (self) |
def | testPrintsHelpWithWindowsStyleQuestionFlag (self) |
def | testPrintsHelpWithUnrecognizedGoogleTestFlag (self) |
def | testPrintsHelpWithIncorrectFlagStyle (self) |
def | testRunsTestsWithoutHelpFlag (self) |
def | testRunsTestsWithGtestInternalFlag (self) |
Tests the --help flag and its equivalent forms.
def gtest_help_test.GTestHelpTest.TestHelpFlag | ( | self, | |
flag | |||
) |
Verifies correct behavior when help flag is specified. The right message must be printed and the tests must skipped when the given flag is specified. Args: flag: A flag to pass to the binary or None.
References gtest_help_test.RunWithFlag().
Referenced by gtest_help_test.GTestHelpTest.testPrintsHelpWithFullFlag(), gtest_help_test.GTestHelpTest.testPrintsHelpWithIncorrectFlagStyle(), gtest_help_test.GTestHelpTest.testPrintsHelpWithQuestionFlag(), gtest_help_test.GTestHelpTest.testPrintsHelpWithShortFlag(), gtest_help_test.GTestHelpTest.testPrintsHelpWithUnrecognizedGoogleTestFlag(), and gtest_help_test.GTestHelpTest.testPrintsHelpWithWindowsStyleQuestionFlag().
def gtest_help_test.GTestHelpTest.TestNonHelpFlag | ( | self, | |
flag | |||
) |
Verifies correct behavior when no help flag is specified. Verifies that when no help flag is specified, the tests are run and the help message is not printed. Args: flag: A flag to pass to the binary or None.
References gtest_help_test.RunWithFlag().
Referenced by gtest_help_test.GTestHelpTest.testRunsTestsWithGtestInternalFlag(), and gtest_help_test.GTestHelpTest.testRunsTestsWithoutHelpFlag().
def gtest_help_test.GTestHelpTest.testPrintsHelpWithFullFlag | ( | self | ) |
References gtest_help_test.GTestHelpTest.TestHelpFlag().
def gtest_help_test.GTestHelpTest.testPrintsHelpWithShortFlag | ( | self | ) |
References gtest_help_test.GTestHelpTest.TestHelpFlag().
def gtest_help_test.GTestHelpTest.testPrintsHelpWithQuestionFlag | ( | self | ) |
References gtest_help_test.GTestHelpTest.TestHelpFlag().
def gtest_help_test.GTestHelpTest.testPrintsHelpWithWindowsStyleQuestionFlag | ( | self | ) |
References gtest_help_test.GTestHelpTest.TestHelpFlag().
def gtest_help_test.GTestHelpTest.testPrintsHelpWithUnrecognizedGoogleTestFlag | ( | self | ) |
References gtest_help_test.GTestHelpTest.TestHelpFlag().
def gtest_help_test.GTestHelpTest.testPrintsHelpWithIncorrectFlagStyle | ( | self | ) |
References gtest_help_test.GTestHelpTest.TestHelpFlag().
def gtest_help_test.GTestHelpTest.testRunsTestsWithoutHelpFlag | ( | self | ) |
Verifies that when no help flag is specified, the tests are run and the help message is not printed.
References gtest_help_test.GTestHelpTest.TestNonHelpFlag().
def gtest_help_test.GTestHelpTest.testRunsTestsWithGtestInternalFlag | ( | self | ) |
Verifies that the tests are run and no help message is printed when a flag starting with Google Test prefix and 'internal_' is supplied.
References gtest_test_utils.Main(), and gtest_help_test.GTestHelpTest.TestNonHelpFlag().