MCPcopy
hub / github.com/dask/dask / test_read_bytes_sample_delimiter

Function test_read_bytes_sample_delimiter

dask/bytes/tests/test_local.py:80–87  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

78
79
80def test_read_bytes_sample_delimiter():
81 with filetexts(files, mode="b"):
82 sample, values = read_bytes(".test.accounts.*", sample=80, delimiter=b"\n")
83 assert sample.endswith(b"\n")
84 sample, values = read_bytes(".test.accounts.1.json", sample=80, delimiter=b"\n")
85 assert sample.endswith(b"\n")
86 sample, values = read_bytes(".test.accounts.1.json", sample=2, delimiter=b"\n")
87 assert sample.endswith(b"\n")
88
89
90def test_parse_sample_bytes():

Callers

nothing calls this directly

Calls 2

filetextsFunction · 0.90
read_bytesFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…