MCPcopy Create free account
hub / github.com/bytecodealliance/cargo-component / it_builds_debug

Function it_builds_debug

tests/build.rs:14–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12
13#[test]
14fn it_builds_debug() -> Result<()> {
15 let project = Project::new("foo", true)?;
16
17 project
18 .cargo_component(["build"])
19 .assert()
20 .stderr(contains(
21 "Finished `dev` profile [unoptimized + debuginfo] target(s)",
22 ))
23 .success();
24
25 validate_component(&project.debug_wasm("foo"))?;
26
27 // A lock file should only be generated for projects with
28 // registry dependencies
29 assert!(!project.root().join("Cargo-component.lock").exists());
30
31 Ok(())
32}
33
34#[test]
35fn it_builds_a_bin_project_with_snake_case() -> Result<()> {

Callers

nothing calls this directly

Calls 3

validate_componentFunction · 0.85
cargo_componentMethod · 0.80
debug_wasmMethod · 0.80

Tested by

no test coverage detected