MCPcopy Create free account
hub / github.com/apache/fory / test_bool_field_coercion

Function test_bool_field_coercion

python/pyfory/tests/test_struct.py:774–777  ·  view source on GitHub ↗
(value, expected)

Source from the content-addressed store, hash-verified

772 ],
773)
774def test_bool_field_coercion(value, expected):
775 fory = Fory(xlang=False, ref=True, strict=False, compatible=False)
776 result = ser_de(fory, BoolCoercionObject(value))
777 assert result.b is expected
778
779
780def test_bool_field_coercion_numpy_bool():

Callers

nothing calls this directly

Calls 3

ForyClass · 0.90
BoolCoercionObjectClass · 0.85
ser_deFunction · 0.70

Tested by

no test coverage detected