Test the 'action' callback
(self)
| 2122 | raise RuntimeError |
| 2123 | |
| 2124 | def test_action(self): |
| 2125 | """ |
| 2126 | Test the 'action' callback |
| 2127 | """ |
| 2128 | results = self.DummyList() |
| 2129 | barrier = self.Barrier(self.N, action=AppendTrue(results)) |
| 2130 | self.run_threads(self._test_action_f, (barrier, results)) |
| 2131 | self.assertEqual(len(results), 1) |
| 2132 | |
| 2133 | @classmethod |
| 2134 | def _test_abort_f(cls, barrier, results1, results2): |
nothing calls this directly
no test coverage detected