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

Method test_sort_stats_string

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

Source from the content-addressed store, hash-verified

83 self.stats.sort_arg_dict_default[arg_str][-1])
84
85 def test_sort_stats_string(self):
86 for sort_name in ['calls', 'ncalls', 'cumtime', 'cumulative',
87 'filename', 'line', 'module', 'name', 'nfl', 'pcalls',
88 'stdname', 'time', 'tottime']:
89 self.stats.sort_stats(sort_name)
90 self.assertEqual(self.stats.sort_type,
91 self.stats.sort_arg_dict_default[sort_name][-1])
92
93 def test_sort_stats_partial(self):
94 sortkey = 'filename'

Callers

nothing calls this directly

Calls 2

sort_statsMethod · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected