mirror of
https://github.com/Noratrieb/cargo-minimize.git
synced 2026-01-17 01:35:01 +01:00
test infra
This commit is contained in:
parent
1398d3d211
commit
75108c8553
6 changed files with 145 additions and 36 deletions
24
tests/minimize.rs
Normal file
24
tests/minimize.rs
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
mod helper;
|
||||
|
||||
use anyhow::Result;
|
||||
|
||||
use helper::run_test;
|
||||
|
||||
#[test]
|
||||
fn hello_world_no_verify() -> Result<()> {
|
||||
run_test(
|
||||
r##"
|
||||
fn main() {
|
||||
println!("Hello, world!");
|
||||
}
|
||||
"##,
|
||||
r##"
|
||||
fn main() {
|
||||
loop {}
|
||||
}
|
||||
"##,
|
||||
|opts| {
|
||||
opts.no_verify = true;
|
||||
},
|
||||
)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue