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

Function smoke

cranelift/assembler-x64/src/fuzz.rs:393–405  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

391
392 #[test]
393 fn smoke() {
394 let count = AtomicUsize::new(0);
395 arbtest(|u| {
396 let inst: Inst<FuzzRegs> = u.arbitrary()?;
397 roundtrip(&inst);
398 println!("#{}: {inst}", count.fetch_add(1, Ordering::SeqCst));
399 Ok(())
400 })
401 .budget_ms(1_000);
402
403 // This will run the `roundtrip` fuzzer for one second. To repeatably
404 // test a single input, append `.seed(0x<failing seed>)`.
405 }
406
407 #[test]
408 fn callq() {

Callers

nothing calls this directly

Calls 5

arbtestFunction · 0.85
OkFunction · 0.85
roundtripFunction · 0.70
newFunction · 0.50
arbitraryMethod · 0.45

Tested by

no test coverage detected