MCPcopy Create free account
hub / github.com/apache/impala / assertCounter

Function assertCounter

tests/custom_cluster/test_tuple_cache.py:67–71  ·  view source on GitHub ↗
(profile, key, val, num_matches)

Source from the content-addressed store, hash-verified

65
66
67def assertCounter(profile, key, val, num_matches):
68 if not isinstance(num_matches, list):
69 num_matches = [num_matches]
70 values = getCounterValues(profile, key)
71 assert len([v for v in values if v == val]) in num_matches, values
72
73
74def assertCounters(profile, num_hits, num_halted, num_skipped, num_matches=1):

Callers 6

assertCountersFunction · 0.85
test_aggregateMethod · 0.85
test_runtime_filtersMethod · 0.85
test_join_timingMethod · 0.85

Calls 1

getCounterValuesFunction · 0.85

Tested by

no test coverage detected