|
Assimp
v4.1. (December 2018)
|
Inherits TestCase.
Tests the env variable or the command line flag to filter tests.
| def gtest_filter_unittest.GTestFilterUnitTest.AdjustForParameterizedTests | ( | self, | |
| tests_to_run | |||
| ) |
Adjust tests_to_run in case value parameterized tests are disabled.
| def gtest_filter_unittest.GTestFilterUnitTest.AssertPartitionIsValid | ( | self, | |
| set_var, | |||
| list_of_sets | |||
| ) |
Asserts that list_of_sets is a valid partition of set_var.
| def gtest_filter_unittest.GTestFilterUnitTest.AssertSetEqual | ( | self, | |
| lhs, | |||
| rhs | |||
| ) |
Asserts that two sets are equal.
| def gtest_filter_unittest.GTestFilterUnitTest.RunAndVerify | ( | self, | |
| gtest_filter, | |||
| tests_to_run | |||
| ) |
Checks that the binary runs correct set of tests for a given filter.
| def gtest_filter_unittest.GTestFilterUnitTest.RunAndVerifyAllowingDisabled | ( | self, | |
| gtest_filter, | |||
| tests_to_run | |||
| ) |
Checks that the binary runs correct set of tests for the given filter. Runs gtest_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.
| def gtest_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 gtest_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.
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.
| def gtest_filter_unittest.GTestFilterUnitTest.setUp | ( | self | ) |
Sets up test case. Determines whether value-parameterized tests are enabled in the binary and sets the flags accordingly.
| def gtest_filter_unittest.GTestFilterUnitTest.testBadFilter | ( | self | ) |
Tests a filter that matches nothing.
| def gtest_filter_unittest.GTestFilterUnitTest.testDefaultBehavior | ( | self | ) |
Tests the behavior of not specifying the filter.
| def gtest_filter_unittest.GTestFilterUnitTest.testDefaultBehaviorWithShards | ( | self | ) |
Tests the behavior without the filter, with sharding enabled.
| def gtest_filter_unittest.GTestFilterUnitTest.testEmptyFilter | ( | self | ) |
Tests an empty filter.
| def gtest_filter_unittest.GTestFilterUnitTest.testFilterByTest | ( | self | ) |
Tests filtering by test name.
| def gtest_filter_unittest.GTestFilterUnitTest.testFilterByTestCase | ( | self | ) |
Tests filtering by test case name.
| def gtest_filter_unittest.GTestFilterUnitTest.testFilterDisabledTests | ( | self | ) |
Select only the disabled tests to run.
| def gtest_filter_unittest.GTestFilterUnitTest.testFilterWithoutDot | ( | self | ) |
Tests a filter that has no '.' in it.
| def gtest_filter_unittest.GTestFilterUnitTest.testFlagOverridesEnvVar | ( | self | ) |
Tests that the filter flag overrides the filtering env. variable.
| def gtest_filter_unittest.GTestFilterUnitTest.testFullName | ( | self | ) |
Tests filtering by full name.
| def gtest_filter_unittest.GTestFilterUnitTest.testNegativeFilters | ( | self | ) |
| def gtest_filter_unittest.GTestFilterUnitTest.testShardingWorksWithDeathTests | ( | self | ) |
Tests integration with death tests and sharding.
| def gtest_filter_unittest.GTestFilterUnitTest.testShardStatusFileIsCreated | ( | self | ) |
Tests that the shard file is created if specified in the environment.
| def gtest_filter_unittest.GTestFilterUnitTest.testShardStatusFileIsCreatedWithListTests | ( | self | ) |
Tests that the shard file is created with the "list_tests" flag.
| def gtest_filter_unittest.GTestFilterUnitTest.testThreePatterns | ( | self | ) |
Tests filters that consist of three patterns.
| def gtest_filter_unittest.GTestFilterUnitTest.testTwoPatterns | ( | self | ) |
Tests filters that consist of two patterns.
| def gtest_filter_unittest.GTestFilterUnitTest.testUniversalFilters | ( | self | ) |
Tests filters that match everything.
| def gtest_filter_unittest.GTestFilterUnitTest.testWildcardInTestCaseName | ( | self | ) |
Tests using wildcard in the test case name.
| def gtest_filter_unittest.GTestFilterUnitTest.testWildcardInTestName | ( | self | ) |
Tests using wildcard in the test name.