MCPcopy Index your code
hub / github.com/RustPython/RustPython / make_uri

Method make_uri

Lib/test/test_pathlib/test_pathlib.py:428–432  ·  view source on GitHub ↗
(self, path)

Source from the content-addressed store, hash-verified

426 P() < {}
427
428 def make_uri(self, path):
429 if isinstance(path, pathlib.Path):
430 return path.as_uri()
431 with self.assertWarns(DeprecationWarning):
432 return path.as_uri()
433
434 def test_as_uri_common(self):
435 P = self.cls

Callers 4

test_as_uri_commonMethod · 0.95
test_as_uri_posixMethod · 0.95
test_as_uri_non_asciiMethod · 0.95
test_as_uri_windowsMethod · 0.95

Calls 3

isinstanceFunction · 0.85
assertWarnsMethod · 0.80
as_uriMethod · 0.45

Tested by

no test coverage detected