MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / addition

Function addition

cranelift/interpreter/src/environment.rs:83–90  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

81
82 #[test]
83 fn addition() {
84 let mut env = FunctionStore::default();
85 let a = "a";
86 let f = Function::new();
87
88 env.add(a.to_string(), &f);
89 assert!(env.get_by_name(a).is_some());
90 }
91
92 #[test]
93 fn nonexistence() {

Callers

nothing calls this directly

Calls 3

newFunction · 0.50
addMethod · 0.45
to_stringMethod · 0.45

Tested by

no test coverage detected