MCPcopy Create free account
hub / github.com/catboost/catboost / get_splitted_tests

Function get_splitted_tests

library/python/testing/yatest_lib/test_splitter.py:70–76  ·  view source on GitHub ↗
(test_entities, modulo, modulo_index, partition_mode, is_sorted=False)

Source from the content-addressed store, hash-verified

68
69
70def get_splitted_tests(test_entities, modulo, modulo_index, partition_mode, is_sorted=False):
71 if partition_mode == 'SEQUENTIAL':
72 return get_sequential_chunk(test_entities, modulo, modulo_index, is_sorted)
73 elif partition_mode == 'MODULO':
74 return get_shuffled_chunk(test_entities, modulo, modulo_index, is_sorted)
75 else:
76 raise ValueError("detected unknown partition mode: {}".format(partition_mode))
77
78
79def filter_tests_by_modulo(test_classes, modulo, modulo_index, split_by_tests, partition_mode="SEQUENTIAL"):

Callers 1

filter_tests_by_moduloFunction · 0.85

Calls 3

get_sequential_chunkFunction · 0.85
get_shuffled_chunkFunction · 0.85
formatMethod · 0.45

Tested by

no test coverage detected