Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/apache/fory
/ create_foo
Function
create_foo
python/pyfory/format/tests/test_encoder.py:62–71 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
60
61
62
def
create_foo():
63
return
Foo(
64
f1=1,
65
f2=
"hello"
,
66
f3=[
"a"
,
"b"
,
"c"
],
67
f4={
"x"
: 1,
"y"
: 2},
68
f5=[10, 20, 30],
69
f6=42,
70
f7=Bar(f1=100, f2=
"world"
),
71
)
72
73
74
def
foo_schema():
Callers
4
test_encode
Function · 0.70
test_row_and_array_reject_one_past_end_index
Function · 0.70
test_encoder
Function · 0.70
test_encoder_with_schema
Function · 0.70
Calls
2
Foo
Class · 0.70
Bar
Class · 0.70
Tested by
no test coverage detected