Test corner cases in flash_paren_event and paren_closed_event. Force execution of conditional expressions and alternate paths.
(self)
| 80 | text.tag_prevrange('paren', 'end'), range2) |
| 81 | |
| 82 | def test_paren_corner(self): |
| 83 | """ |
| 84 | Test corner cases in flash_paren_event and paren_closed_event. |
| 85 | |
| 86 | Force execution of conditional expressions and alternate paths. |
| 87 | """ |
| 88 | text = self.text |
| 89 | pm = self.get_parenmatch() |
| 90 | |
| 91 | text.insert('insert', '# Comment.)') |
| 92 | pm.paren_closed_event('event') |
| 93 | |
| 94 | text.insert('insert', '\ndef') |
| 95 | pm.flash_paren_event('event') |
| 96 | pm.paren_closed_event('event') |
| 97 | |
| 98 | text.insert('insert', ' a, *arg)') |
| 99 | pm.paren_closed_event('event') |
| 100 | |
| 101 | def test_handle_restore_timer(self): |
| 102 | pm = self.get_parenmatch() |
nothing calls this directly
no test coverage detected