()
| 64 | |
| 65 | |
| 66 | def test_iterator_doc_annotations(): |
| 67 | assert m.IntPairs.nonref.__doc__.endswith( |
| 68 | "-> collections.abc.Iterator[tuple[int, int]]\n" |
| 69 | ) |
| 70 | assert m.IntPairs.nonref_keys.__doc__.endswith("-> collections.abc.Iterator[int]\n") |
| 71 | assert m.IntPairs.nonref_values.__doc__.endswith( |
| 72 | "-> collections.abc.Iterator[int]\n" |
| 73 | ) |
| 74 | assert m.IntPairs.simple_iterator.__doc__.endswith( |
| 75 | "-> collections.abc.Iterator[tuple[int, int]]\n" |
| 76 | ) |
| 77 | assert m.IntPairs.simple_keys.__doc__.endswith("-> collections.abc.Iterator[int]\n") |
| 78 | assert m.IntPairs.simple_values.__doc__.endswith( |
| 79 | "-> collections.abc.Iterator[int]\n" |
| 80 | ) |
| 81 | |
| 82 | |
| 83 | def test_iterator_referencing(): |
nothing calls this directly
no outgoing calls
no test coverage detected