def test_probes_atomic_pointer_type_serialization(self):
     # given
     type = "int *"
     accessor = "self->arg0"
     # when
     output = serialize_atomic_type(type, "int", accessor)
     # then
     self.assertEqual("!!(self->arg0) ? (int)0 : *(int *)copyin((uint64_t)self->arg0, sizeof(int))", output)
 def test_probes_atomic_type_serialization(self):
     # given
     type = "float"
     accessor = "self->arg0"
     # when
     output = serialize_atomic_type(type, type, accessor)
     # then
     self.assertEqual("(float)(self->arg0)", output)
 def test_probes_atomic_type_serialization(self):
     # given
     type = "float"
     accessor = "self->arg0"
     # when
     output = serialize_atomic_type(type, type, accessor)
     # then
     self.assertEqual("(float)(self->arg0)", output)
 def test_probes_atomic_pointer_type_serialization(self):
     # given
     type = "int *"
     accessor = "self->arg0"
     # when
     output = serialize_atomic_type(type, "int", accessor)
     # then
     self.assertEqual(
         "!!(self->arg0) ? (int)0 : *(int *)copyin((uint64_t)self->arg0, sizeof(int))",
         output)