|
cMHN 1.2
C++ library for learning MHNs with pRC
|
Public Member Functions | |
| AssertSetEqual (self, lhs, rhs) | |
| AssertPartitionIsValid (self, set_var, list_of_sets) | |
| AdjustForParameterizedTests (self, tests_to_run) | |
| RunAndVerify (self, gtest_filter, tests_to_run) | |
| RunAndVerifyWithSharding (self, gtest_filter, total_shards, tests_to_run, args=None, check_exit_0=False) | |
| RunAndVerifyAllowingDisabled (self, gtest_filter, tests_to_run) | |
| setUp (self) | |
| testDefaultBehavior (self) | |
| testDefaultBehaviorWithShards (self) | |
| testEmptyFilter (self) | |
| testBadFilter (self) | |
| testFullName (self) | |
| testUniversalFilters (self) | |
| testFilterByTestCase (self) | |
| testFilterByTest (self) | |
| testFilterDisabledTests (self) | |
| testWildcardInTestCaseName (self) | |
| testWildcardInTestName (self) | |
| testFilterWithoutDot (self) | |
| testTwoPatterns (self) | |
| testThreePatterns (self) | |
| testNegativeFilters (self) | |
| testFlagOverridesEnvVar (self) | |
| testShardStatusFileIsCreated (self) | |
| testShardStatusFileIsCreatedWithListTests (self) | |
| testDisabledBanner (self) | |
| testShardingWorksWithDeathTests (self) | |
Tests the env variable or the command line flag to filter tests.
| googletest-filter-unittest.GTestFilterUnitTest.AdjustForParameterizedTests | ( | self, | |
| tests_to_run ) |
Adjust tests_to_run in case value parameterized tests are disabled.
| googletest-filter-unittest.GTestFilterUnitTest.AssertPartitionIsValid | ( | self, | |
| set_var, | |||
| list_of_sets ) |
Asserts that list_of_sets is a valid partition of set_var.
| googletest-filter-unittest.GTestFilterUnitTest.AssertSetEqual | ( | self, | |
| lhs, | |||
| rhs ) |
Asserts that two sets are equal.
| googletest-filter-unittest.GTestFilterUnitTest.RunAndVerify | ( | self, | |
| gtest_filter, | |||
| tests_to_run ) |
Checks that the binary runs correct set of tests for a given filter.
| googletest-filter-unittest.GTestFilterUnitTest.RunAndVerifyAllowingDisabled | ( | self, | |
| gtest_filter, | |||
| tests_to_run ) |
Checks that the binary runs correct set of tests for the given filter. Runs googletest-filter-unittest_ with the given filter, and enables disabled tests. Verifies that the right set of tests were run. Args: gtest_filter: A filter to apply to the tests. tests_to_run: A set of tests expected to run.
| googletest-filter-unittest.GTestFilterUnitTest.RunAndVerifyWithSharding | ( | self, | |
| gtest_filter, | |||
| total_shards, | |||
| tests_to_run, | |||
| args = None, | |||
| check_exit_0 = False ) |
Checks that binary runs correct tests for the given filter and shard.
Runs all shards of googletest-filter-unittest_ with the given filter, and
verifies that the right set of tests were run. The union of tests run
on each shard should be identical to tests_to_run, without duplicates.
If check_exit_0, .
Args:
gtest_filter: A filter to apply to the tests.
total_shards: A total number of shards to split test run into.
tests_to_run: A set of tests expected to run.
args: Arguments to pass to the to the test binary.
check_exit_0: When set to a true value, make sure that all shards return
0.
| googletest-filter-unittest.GTestFilterUnitTest.setUp | ( | self | ) |
Sets up test case. Determines whether value-parameterized tests are enabled in the binary and sets the flags accordingly.
| googletest-filter-unittest.GTestFilterUnitTest.testBadFilter | ( | self | ) |
Tests a filter that matches nothing.
| googletest-filter-unittest.GTestFilterUnitTest.testDefaultBehavior | ( | self | ) |
Tests the behavior of not specifying the filter.
| googletest-filter-unittest.GTestFilterUnitTest.testDefaultBehaviorWithShards | ( | self | ) |
Tests the behavior without the filter, with sharding enabled.
| googletest-filter-unittest.GTestFilterUnitTest.testDisabledBanner | ( | self | ) |
Tests that the disabled banner prints only tests that match filter.
| googletest-filter-unittest.GTestFilterUnitTest.testEmptyFilter | ( | self | ) |
Tests an empty filter.
| googletest-filter-unittest.GTestFilterUnitTest.testFilterByTest | ( | self | ) |
Tests filtering by test name.
| googletest-filter-unittest.GTestFilterUnitTest.testFilterByTestCase | ( | self | ) |
Tests filtering by test case name.
| googletest-filter-unittest.GTestFilterUnitTest.testFilterDisabledTests | ( | self | ) |
Select only the disabled tests to run.
| googletest-filter-unittest.GTestFilterUnitTest.testFilterWithoutDot | ( | self | ) |
Tests a filter that has no '.' in it.
| googletest-filter-unittest.GTestFilterUnitTest.testFlagOverridesEnvVar | ( | self | ) |
Tests that the filter flag overrides the filtering env. variable.
| googletest-filter-unittest.GTestFilterUnitTest.testFullName | ( | self | ) |
Tests filtering by full name.
| googletest-filter-unittest.GTestFilterUnitTest.testNegativeFilters | ( | self | ) |
| googletest-filter-unittest.GTestFilterUnitTest.testShardingWorksWithDeathTests | ( | self | ) |
Tests integration with death tests and sharding.
| googletest-filter-unittest.GTestFilterUnitTest.testShardStatusFileIsCreated | ( | self | ) |
Tests that the shard file is created if specified in the environment.
| googletest-filter-unittest.GTestFilterUnitTest.testShardStatusFileIsCreatedWithListTests | ( | self | ) |
Tests that the shard file is created with the "list_tests" flag.
| googletest-filter-unittest.GTestFilterUnitTest.testThreePatterns | ( | self | ) |
Tests filters that consist of three patterns.
| googletest-filter-unittest.GTestFilterUnitTest.testTwoPatterns | ( | self | ) |
Tests filters that consist of two patterns.
| googletest-filter-unittest.GTestFilterUnitTest.testUniversalFilters | ( | self | ) |
Tests filters that match everything.
| googletest-filter-unittest.GTestFilterUnitTest.testWildcardInTestCaseName | ( | self | ) |
Tests using wildcard in the test case name.
| googletest-filter-unittest.GTestFilterUnitTest.testWildcardInTestName | ( | self | ) |
Tests using wildcard in the test name.