MCPcopy
hub / github.com/dask/dask / test_read_text

Function test_read_text

dask/bag/tests/test_bag.py:692–697  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

690
691
692def test_read_text():
693 with filetexts({"a1.log": "A\nB", "a2.log": "C\nD"}) as fns:
694 assert {line.strip() for line in db.read_text(fns)} == set("ABCD")
695 assert {line.strip() for line in db.read_text("a*.log")} == set("ABCD")
696
697 pytest.raises(ValueError, lambda: db.read_text("non-existent-*-path"))
698
699
700def test_read_text_large():

Callers

nothing calls this directly

Calls 2

filetextsFunction · 0.90
setClass · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…