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

Function test_encoder

python/pyfory/format/tests/test_encoder.py:117–122  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

115
116
117def test_encoder():
118 foo = create_foo()
119 encoder = pyfory.encoder(Foo)
120 new_foo = encoder.decode(encoder.encode(foo))
121 assert foo.f1 == new_foo.f1
122 assert foo.f2 == new_foo.f2
123
124
125def test_encoder_with_schema():

Callers

nothing calls this directly

Calls 3

create_fooFunction · 0.70
decodeMethod · 0.65
encodeMethod · 0.65

Tested by

no test coverage detected