Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/apache/fory
/ test_compile_function
Function
test_compile_function
python/pyfory/tests/test_codegen.py:45–48 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
43
44
45
def
test_compile_function():
46
code, func = codegen.compile_function(
"test_compile_function"
, [
"x"
], [
"print(1)"
,
"print(2)"
,
"return x"
], {})
47
print(code)
48
assert func(100) == 100
Callers
nothing calls this directly
Calls
1
func
Function · 0.85
Tested by
no test coverage detected