MCPcopy
hub / github.com/pathwaycom/pathway / test_custom_count_null

Function test_custom_count_null

python/pathway/tests/test_reducers.py:93–104  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

91
92
93def test_custom_count_null():
94 left = T(
95 """
96 pet | owner | age | __time__ | __diff__
97 dog | Alice | 10 | 0 | 1
98 dog | Alice | 10 | 2 | -1
99 """
100 )
101
102 left_res = left.groupby(left.pet).reduce(cnt=custom_cnt())
103
104 assert_table_equality(left_res, pw.Table.empty(cnt=int))
105
106
107class CustomCntWithRetractAccumulator(CustomCntAccumulator):

Callers

nothing calls this directly

Calls 4

TFunction · 0.90
reduceMethod · 0.45
groupbyMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected