Debian Codegraph @

third_party/rust/clap/src/_derive/_tutorial/chapter_4.rs

raw
1 //! ## Testing
2 //!
3 //! clap reports most development errors as `debug_assert!`s. Rather than checking every
4 //! subcommand, you should have a test that calls
5 //! [`Command::debug_assert`][crate::Command::debug_assert]:
6 //! ```rust,no_run
7 #![doc = include_str!("../../../examples/tutorial_derive/05_01_assert.rs")]
8 //! ```
9
10 #![allow(unused_imports)]
11 use crate::builder::*;
12
13 pub use super::chapter_3 as previous;
14 pub use super::chapter_5 as next;
15 pub use crate::_derive::_tutorial as table_of_contents;