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

Function it_warns_on_proxy_setting_for_command

tests/build.rs:840–858  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

838
839#[test]
840fn it_warns_on_proxy_setting_for_command() -> Result<()> {
841 let project = Project::new("foo", false)?;
842 project.update_manifest(|mut doc| {
843 doc["package"]["metadata"]["component"]["proxy"] = value(true);
844 Ok(doc)
845 })?;
846
847 project
848 .cargo_component(["build"])
849 .assert()
850 .stderr(contains(
851 "warning: ignoring `proxy` setting in `Cargo.toml` for command component",
852 ))
853 .success();
854
855 validate_component(&project.debug_wasm("foo"))?;
856
857 Ok(())
858}
859
860#[test]
861fn it_warns_with_proxy_and_adapter_settings() -> Result<()> {

Callers

nothing calls this directly

Calls 4

validate_componentFunction · 0.85
cargo_componentMethod · 0.80
debug_wasmMethod · 0.80
update_manifestMethod · 0.45

Tested by

no test coverage detected