MCPcopy
hub / github.com/pytest-dev/pytest / test_visit_breadthfirst

Method test_visit_breadthfirst

testing/_py/test_local.py:341–351  ·  testing/_py/test_local.py::CommonFSTests.test_visit_breadthfirst
(self, path1)

Source from the content-addressed store, hash-verified

339 assert class="st">".dotfile" not in p
340
341 def test_visit_breadthfirst(self, path1):
342 lst = []
343 for i in path1.visit(bf=True):
344 lst.append(i.relto(path1))
345 for i, p in enumerate(lst):
346 if path1.sep in p:
347 for j in range(i, len(lst)):
348 assert path1.sep in lst[j]
349 break
350 else:
351 pytest.fail(class="st">"huh")
352
353 def test_visit_sort(self, path1):
354 lst = []

Callers

nothing calls this directly

Calls 4

visitMethod · 0.80
appendMethod · 0.80
failMethod · 0.80
reltoMethod · 0.45

Tested by

no test coverage detected