≈ the.bay.news

Code coverage ignore comments

Rust Internals
Code coverage ignore comments
Would like to see an option to add comments to exclude certain lines of code from code coverage like this... println!("Loading..."); let response: ResponseType = match api_lib::get().await { Ok(response) => response, //coverage ignore start Err(err) => { eprintln!("{err}"); std::process::exit(1); } //coverage ignore end }; println!("Welcome..."); This will help get closer to 100% code coverage for those parts in your code where you do not expect to test s...

0 comments

Sign in to join the discussion — your thebay.events account works here.

No comments yet.