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

Function test_encoder_with_schema

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

Source from the content-addressed store, hash-verified

123
124
125def test_encoder_with_schema():
126 foo = create_foo()
127 encoder = pyfory.encoder(schema=foo_schema())
128 new_foo = encoder.decode(encoder.encode(foo))
129 assert foo.f1 == new_foo.f1
130 assert foo.f2 == new_foo.f2
131
132
133def test_dict():

Callers

nothing calls this directly

Calls 4

create_fooFunction · 0.70
foo_schemaFunction · 0.70
decodeMethod · 0.65
encodeMethod · 0.65

Tested by

no test coverage detected