(self)
| 280 | self.assertIn(self.guard_is_true, uops) |
| 281 | |
| 282 | def test_pop_jump_if_none(self): |
| 283 | def testfunc(a): |
| 284 | for x in a: |
| 285 | if x is None: |
| 286 | x = 0 |
| 287 | |
| 288 | testfunc(range(TIER2_THRESHOLD)) |
| 289 | |
| 290 | ex = get_first_executor(testfunc) |
| 291 | self.assertIsNotNone(ex) |
| 292 | uops = get_opnames(ex) |
| 293 | self.assertNotIn("_GUARD_IS_NONE_POP", uops) |
| 294 | self.assertNotIn("_GUARD_IS_NOT_NONE_POP", uops) |
| 295 | |
| 296 | def test_pop_jump_if_not_none(self): |
| 297 | def testfunc(a): |
nothing calls this directly
no test coverage detected