()
| 838 | |
| 839 | #[test] |
| 840 | fn 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] |
| 861 | fn it_warns_with_proxy_and_adapter_settings() -> Result<()> { |
nothing calls this directly
no test coverage detected