MCPcopy Create free account
hub / github.com/chubin/cheat.sh / test_header_split

Function test_header_split

lib/cheat_wrapper_test.py:34–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

32
33
34def test_header_split():
35 for inp in unchanged.strip().splitlines():
36 assert inp == _add_section_name(inp)
37
38 for test in split.strip().split("\n\n"):
39 inp, outp = test.split("\n")
40 assert outp == _add_section_name(inp)

Callers

nothing calls this directly

Calls 2

_add_section_nameFunction · 0.90
stripMethod · 0.80

Tested by

no test coverage detected