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

Function document_equivalent

crates/wiggle/tests/wasi.rs:16–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14// proc macro in the `metadata` module is equal to the document on the disk.
15#[test]
16fn document_equivalent() {
17 let macro_doc = metadata::document();
18 let mut path = std::path::PathBuf::from(env!("CARGO_MANIFEST_DIR"));
19 path.push("tests");
20 path.push("wasi.witx");
21 let disk_doc = witx::load(&[path]).expect("load wasi.witx from disk");
22
23 assert_eq!(macro_doc, disk_doc);
24}
25
26type Result<T> = std::result::Result<T, types::Errno>;
27

Callers

nothing calls this directly

Calls 4

fromFunction · 0.85
loadFunction · 0.50
pushMethod · 0.45
expectMethod · 0.45

Tested by

no test coverage detected