MCPcopy
hub / github.com/pimutils/vdirsyncer / test_split_collection_simple

Function test_split_collection_simple

tests/unit/utils/test_vobject.py:29–36  ·  view source on GitHub ↗
(benchmark)

Source from the content-addressed store, hash-verified

27
28
29def test_split_collection_simple(benchmark):
30 given = benchmark(lambda: list(vobject.split_collection(_simple_joined)))
31
32 assert [normalize_item(item) for item in given] == \
33 [normalize_item(item) for item in _simple_split]
34
35 assert [x.splitlines() for x in given] == \
36 [x.splitlines() for x in _simple_split]
37
38
39def test_split_collection_multiple_wrappers(benchmark):

Callers

nothing calls this directly

Calls 2

benchmarkFunction · 0.85
normalize_itemFunction · 0.85

Tested by

no test coverage detected