MCPcopy Index your code
hub / github.com/python/cpython / fnmatch

Method fnmatch

Lib/test/test_tracemalloc.py:778–780  ·  view source on GitHub ↗
(inclusive, filename, pattern)

Source from the content-addressed store, hash-verified

776
777 def test_filter_match_filename(self):
778 def fnmatch(inclusive, filename, pattern):
779 f = tracemalloc.Filter(inclusive, pattern)
780 return f._match_frame(filename, 0)
781
782 self.assertTrue(fnmatch(True, "abc", "abc"))
783 self.assertFalse(fnmatch(True, "12356", "abc"))

Callers 6

_match_frame_implMethod · 0.80
is_skipped_moduleMethod · 0.80
filter_commandMethod · 0.80
tmpdir_with_pythonMethod · 0.80
findfilesFunction · 0.80
match_globFunction · 0.80

Calls 1

_match_frameMethod · 0.95

Tested by

no test coverage detected