MCPcopy Create free account
hub / github.com/LPC4/Full-Stack / compile_ok

Function compile_ok

tests/integration/ir_generation.rs:20–26  ·  view source on GitHub ↗
(source: &str)

Source from the content-addressed store, hash-verified

18 let result = pipeline.compile(source);
19 let err = result.expect_err("expected compilation to fail");
20 match err {
21 CompilationError::DiagnosticErrors(diags) => assert!(
22 diags.iter().any(|d| d.message.contains(fragment)),
23 "expected diagnostic containing `{fragment}`, got: {diags:?}"
24 ),
25 other => panic!("expected DiagnosticErrors, got: {other:?}"),
26 }
27}
28
29fn has_instruction<F>(source: &str, pred: F) -> bool

Calls 2

set_write_artifactsMethod · 0.80
compileMethod · 0.45