MCPcopy
hub / github.com/huggingface/datasets / test_xsplit

Function test_xsplit

tests/test_file_utils.py:433–439  ·  view source on GitHub ↗
(input_path, expected_head_and_tail)

Source from the content-addressed store, hash-verified

431 ],
432)
433def test_xsplit(input_path, expected_head_and_tail):
434 output_path, tail = xsplit(input_path)
435 expected_path, expected_tail = expected_head_and_tail
436 output_path = _readd_double_slash_removed_by_path(Path(output_path).as_posix())
437 expected_path = _readd_double_slash_removed_by_path(Path(expected_path).as_posix())
438 assert output_path == expected_path
439 assert tail == expected_tail
440
441
442@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 2

xsplitFunction · 0.90

Tested by

no test coverage detected