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

Function func

python/pyfory/tests/test_serializer.py:937–938  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

935 assert c(2) == 4
936
937 def func(x):
938 return x * 2
939
940 c = fory.deserialize(fory.serialize(func))
941 assert c(2) == 4

Callers 10

test_compile_functionFunction · 0.85
xlang_test_main.pyFile · 0.85
for_each_indexFunction · 0.85
traversalContainerMethod · 0.85
reGenerateSerializerMethod · 0.85
parse_argsFunction · 0.85
_bump_versionFunction · 0.85
run_benchmarkFunction · 0.85
run_benchmarkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected