MCPcopy Create free account
hub / github.com/bytecodealliance/javy / parse_one_func_export

Function parse_one_func_export

crates/codegen/src/js.rs:186–190  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

184
185 #[test]
186 fn parse_one_func_export() -> Result<()> {
187 let exports = parse("export function foo() {}")?;
188 assert_eq!(vec!["foo"], exports);
189 Ok(())
190 }
191
192 #[test]
193 fn parse_func_export_with_parameter() -> Result<()> {

Callers

nothing calls this directly

Calls 1

parseFunction · 0.70

Tested by

no test coverage detected