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

Method fn

Lib/test/test_glob.py:460–461  ·  view source on GitHub ↗
(pat)

Source from the content-addressed store, hash-verified

458
459 def test_translate(self):
460 def fn(pat):
461 return glob.translate(pat, seps='/')
462 self.assertEqual(fn('foo'), r'(?s:foo)\z')
463 self.assertEqual(fn('foo/bar'), r'(?s:foo/bar)\z')
464 self.assertEqual(fn('*'), r'(?s:[^/.][^/]*)\z')

Callers 3

runMethod · 0.45
runMethod · 0.45
_process_workerFunction · 0.45

Calls 1

translateMethod · 0.45

Tested by

no test coverage detected