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

Method test_splitext

Lib/test/test_posixpath.py:113–125  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

111 (filename + ext + b"/", b""))
112
113 def test_splitext(self):
114 self.splitextTest("foo.bar", "foo", ".bar")
115 self.splitextTest("foo.boo.bar", "foo.boo", ".bar")
116 self.splitextTest("foo.boo.biff.bar", "foo.boo.biff", ".bar")
117 self.splitextTest(".csh.rc", ".csh", ".rc")
118 self.splitextTest("nodots", "nodots", "")
119 self.splitextTest(".cshrc", ".cshrc", "")
120 self.splitextTest("...manydots", "...manydots", "")
121 self.splitextTest("...manydots.ext", "...manydots", ".ext")
122 self.splitextTest(".", ".", "")
123 self.splitextTest("..", "..", "")
124 self.splitextTest("........", "........", "")
125 self.splitextTest("", "", "")
126
127 def test_splitroot(self):
128 f = posixpath.splitroot

Callers

nothing calls this directly

Calls 1

splitextTestMethod · 0.95

Tested by

no test coverage detected