From aecd4077dadef1c7727b9d946894631340ac0c36 Mon Sep 17 00:00:00 2001 From: Gwilym Kuiper Date: Sat, 1 Oct 2022 19:42:39 +0100 Subject: [PATCH] Add verify test --- tools/src/publish.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tools/src/publish.rs b/tools/src/publish.rs index 9542f7e6..73a34d57 100644 --- a/tools/src/publish.rs +++ b/tools/src/publish.rs @@ -17,7 +17,7 @@ pub enum Error { CargoToml, } -pub fn command() -> clap::Command<'static> { +pub fn command() -> clap::Command { clap::Command::new("publish") .about("Publishes agb and all subcrates") .arg( @@ -196,6 +196,11 @@ fn read_cargo_toml(folder: &Path) -> Result { mod test { use super::*; + #[test] + fn verify_cli() { + command().debug_assert(); + } + #[test] fn url_to_poll_should_return_correct_url() { let test_cases = [