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

Method test_total

Lib/test/test_collections.py:2144–2146  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2142 self.assertRaises(TypeError, Counter.__init__)
2143
2144 def test_total(self):
2145 c = Counter(a=10, b=5, c=0)
2146 self.assertEqual(c.total(), 15)
2147
2148 def test_order_preservation(self):
2149 # Input order dictates items() order

Callers

nothing calls this directly

Calls 3

totalMethod · 0.95
CounterClass · 0.90
assertEqualMethod · 0.45

Tested by

no test coverage detected