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

Method test_sort_stats_int

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

Source from the content-addressed store, hash-verified

73 stats.load_stats(42)
74
75 def test_sort_stats_int(self):
76 valid_args = {-1: 'stdname',
77 0: 'calls',
78 1: 'time',
79 2: 'cumulative'}
80 for arg_int, arg_str in valid_args.items():
81 self.stats.sort_stats(arg_int)
82 self.assertEqual(self.stats.sort_type,
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',

Callers

nothing calls this directly

Calls 3

sort_statsMethod · 0.80
itemsMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected