tesseract v5.3.3.20231005
|
Classes | |
class | GTestShuffleUnitTest |
Functions | |
def | AlsoRunDisabledTestsFlag () |
def | FilterFlag (test_filter) |
def | RepeatFlag (n) |
def | ShuffleFlag () |
def | RandomSeedFlag (n) |
def | RunAndReturnOutput (extra_env, args) |
def | GetTestsForAllIterations (extra_env, args) |
def | GetTestCases (tests) |
def | CalculateTestLists () |
Variables | |
COMMAND = gtest_test_utils.GetTestExecutablePath('googletest-shuffle-test_') | |
string | TOTAL_SHARDS_ENV_VAR = 'GTEST_TOTAL_SHARDS' |
string | SHARD_INDEX_ENV_VAR = 'GTEST_SHARD_INDEX' |
string | TEST_FILTER = 'A*.A:A*.B:C*' |
list | ALL_TESTS = [] |
list | ACTIVE_TESTS = [] |
list | FILTERED_TESTS = [] |
list | SHARDED_TESTS = [] |
list | SHUFFLED_ALL_TESTS = [] |
list | SHUFFLED_ACTIVE_TESTS = [] |
list | SHUFFLED_FILTERED_TESTS = [] |
list | SHUFFLED_SHARDED_TESTS = [] |
def googletest-shuffle-test.AlsoRunDisabledTestsFlag | ( | ) |
Definition at line 56 of file googletest-shuffle-test.py.
def googletest-shuffle-test.CalculateTestLists | ( | ) |
Calculates the list of tests run under different flags.
Definition at line 128 of file googletest-shuffle-test.py.
def googletest-shuffle-test.FilterFlag | ( | test_filter | ) |
Definition at line 60 of file googletest-shuffle-test.py.
def googletest-shuffle-test.GetTestCases | ( | tests | ) |
Returns a list of test cases in the given full test names. Args: tests: a list of full test names Returns: A list of test cases from 'tests', in their original order. Consecutive duplicates are removed.
Definition at line 108 of file googletest-shuffle-test.py.
def googletest-shuffle-test.GetTestsForAllIterations | ( | extra_env, | |
args | |||
) |
Runs the test program and returns a list of test lists. Args: extra_env: a map from environment variables to their values args: command line flags to pass to googletest-shuffle-test_ Returns: A list where the i-th element is the list of tests run in the i-th test iteration.
Definition at line 85 of file googletest-shuffle-test.py.
def googletest-shuffle-test.RandomSeedFlag | ( | n | ) |
Definition at line 72 of file googletest-shuffle-test.py.
def googletest-shuffle-test.RepeatFlag | ( | n | ) |
Definition at line 64 of file googletest-shuffle-test.py.
def googletest-shuffle-test.RunAndReturnOutput | ( | extra_env, | |
args | |||
) |
Runs the test program and returns its output.
Definition at line 76 of file googletest-shuffle-test.py.
def googletest-shuffle-test.ShuffleFlag | ( | ) |
Definition at line 68 of file googletest-shuffle-test.py.
list googletest-shuffle-test.ACTIVE_TESTS = [] |
Definition at line 46 of file googletest-shuffle-test.py.
list googletest-shuffle-test.ALL_TESTS = [] |
Definition at line 45 of file googletest-shuffle-test.py.
googletest-shuffle-test.COMMAND = gtest_test_utils.GetTestExecutablePath('googletest-shuffle-test_') |
Definition at line 37 of file googletest-shuffle-test.py.
list googletest-shuffle-test.FILTERED_TESTS = [] |
Definition at line 47 of file googletest-shuffle-test.py.
string googletest-shuffle-test.SHARD_INDEX_ENV_VAR = 'GTEST_SHARD_INDEX' |
Definition at line 41 of file googletest-shuffle-test.py.
list googletest-shuffle-test.SHARDED_TESTS = [] |
Definition at line 48 of file googletest-shuffle-test.py.
list googletest-shuffle-test.SHUFFLED_ACTIVE_TESTS = [] |
Definition at line 51 of file googletest-shuffle-test.py.
list googletest-shuffle-test.SHUFFLED_ALL_TESTS = [] |
Definition at line 50 of file googletest-shuffle-test.py.
list googletest-shuffle-test.SHUFFLED_FILTERED_TESTS = [] |
Definition at line 52 of file googletest-shuffle-test.py.
list googletest-shuffle-test.SHUFFLED_SHARDED_TESTS = [] |
Definition at line 53 of file googletest-shuffle-test.py.
string googletest-shuffle-test.TEST_FILTER = 'A*.A:A*.B:C*' |
Definition at line 43 of file googletest-shuffle-test.py.
string googletest-shuffle-test.TOTAL_SHARDS_ENV_VAR = 'GTEST_TOTAL_SHARDS' |
Definition at line 40 of file googletest-shuffle-test.py.