MCPcopy Create free account
hub / github.com/apache/tvm-ffi / test_zero_arg_function

Function test_zero_arg_function

addons/tvm_ffi_orcjit/tests/test_basic.py:353–356  ·  view source on GitHub ↗

Zero-arg function returns constant 42.

(v: Variant)

Source from the content-addressed store, hash-verified

351
352@pytest.mark.parametrize("v", _all_variants, ids=_variant_id)
353def test_zero_arg_function(v: Variant) -> None:
354 """Zero-arg function returns constant 42."""
355 _, lib = make_lib(v.types_obj())
356 assert lib.get_function(v.fn("test_zero_arg"))() == 42
357
358
359@pytest.mark.parametrize("v", _all_variants, ids=_variant_id)

Callers

nothing calls this directly

Calls 4

make_libFunction · 0.85
types_objMethod · 0.80
fnMethod · 0.80
get_functionMethod · 0.45

Tested by

no test coverage detected