(self, bad_value)
| 501 | |
| 502 | @parameterized.parameters(float('inf'), float('nan'), 1e15) |
| 503 | def testBadQpos(self, bad_value): |
| 504 | with self._physics.reset_context(): |
| 505 | self._physics.data.qpos[0] = bad_value |
| 506 | with self.assertRaises(control.PhysicsError): |
| 507 | with self._physics.check_invalid_state(): |
| 508 | mujoco.mj_checkPos(self._physics.model.ptr, self._physics.data.ptr) |
| 509 | self._physics.reset() |
| 510 | with self._physics.check_invalid_state(): |
| 511 | mujoco.mj_checkPos(self._physics.model.ptr, self._physics.data.ptr) |
| 512 | |
| 513 | def testNanControl(self): |
| 514 | with self._physics.reset_context(): |
nothing calls this directly
no test coverage detected