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

Method test_iter

Lib/test/test_memoryview.py:88–92  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

86 self.assertEqual(m.index(chi, start, stop), index)
87
88 def test_iter(self):
89 for tp in self._types:
90 b = tp(self._source)
91 m = self._view(b)
92 self.assertEqual(list(m), [m[i] for i in range(len(m))])
93
94 def test_count(self):
95 for tp in self._types:

Callers

nothing calls this directly

Calls 4

listClass · 0.85
lenFunction · 0.85
_viewMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected