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

Function test_xgetsize

tests/test_file_utils.py:568–573  ·  view source on GitHub ↗
(input_path, size, tmp_path, mock_fsspec2)

Source from the content-addressed store, hash-verified

566 ],
567)
568def test_xgetsize(input_path, size, tmp_path, mock_fsspec2):
569 if input_path.startswith("tmp_path"):
570 input_path = input_path.replace("/", os.sep).replace("tmp_path", str(tmp_path))
571 (tmp_path / "file.txt").touch()
572 (tmp_path / "file.txt").write_bytes(b"x" * 100)
573 assert xgetsize(input_path) == size
574
575
576@pytest.mark.integration

Callers

nothing calls this directly

Calls 1

xgetsizeFunction · 0.90

Tested by

no test coverage detected