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

Function foo_schema

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

Source from the content-addressed store, hash-verified

72
73
74def foo_schema():
75 return schema(
76 [
77 field("f1", int64()),
78 field("f2", utf8()),
79 field("f3", list_(utf8())),
80 field("f4", map_(utf8(), int64())),
81 field("f5", list_(int64())),
82 field("f6", int64()),
83 field("f7", struct([field("f1", int64()), field("f2", utf8())])),
84 ]
85 )
86
87
88def test_encode():

Callers 3

test_encodeFunction · 0.70
test_encoder_with_schemaFunction · 0.70

Calls 5

schemaFunction · 0.85
utf8Function · 0.85
structFunction · 0.85
fieldFunction · 0.50
int64Function · 0.50

Tested by

no test coverage detected