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

Method test_sort_stats_partial

Lib/test/test_pstats.py:93–99  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

91 self.stats.sort_arg_dict_default[sort_name][-1])
92
93 def test_sort_stats_partial(self):
94 sortkey = 'filename'
95 for sort_name in ['f', 'fi', 'fil', 'file', 'filen', 'filena',
96 'filenam', 'filename']:
97 self.stats.sort_stats(sort_name)
98 self.assertEqual(self.stats.sort_type,
99 self.stats.sort_arg_dict_default[sortkey][-1])
100
101 def test_sort_stats_enum(self):
102 for member in SortKey:

Callers

nothing calls this directly

Calls 2

sort_statsMethod · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected