Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions crates/llama-spec-bench/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -799,3 +799,15 @@ fn prompt_case_from_value(value: &Value, line_index: usize) -> Result<PromptCase
fn elapsed_ms(started: Instant) -> f64 {
started.elapsed().as_secs_f64() * 1000.0
}

#[cfg(test)]
mod tests {
use super::*;

#[test]
#[cfg(debug_assertions)]
fn cli_definition_is_internally_consistent() {
use clap::CommandFactory;
Args::command().debug_assert();
}
}
12 changes: 12 additions & 0 deletions crates/metrics-server/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,15 @@ pub(crate) struct EmitFixtureArgs {
#[arg(long, default_value = "stage-0")]
pub(crate) stage_id: String,
}

#[cfg(test)]
mod tests {
use super::*;

#[test]
#[cfg(debug_assertions)]
fn cli_definition_is_internally_consistent() {
use clap::CommandFactory;
Cli::command().debug_assert();
}
}
14 changes: 14 additions & 0 deletions crates/skippy-cli/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -524,6 +524,20 @@ impl From<PlanSplitArgs> for skippy_commands::split::PlanSplitCommand {
mod tests {
use super::*;

#[test]
#[cfg(debug_assertions)]
fn cli_definition_is_internally_consistent() {
use clap::CommandFactory;

Cli::command().debug_assert();
}

#[test]
#[cfg(debug_assertions)]
fn serve_settings_definition_is_internally_consistent() {
crate::serve_settings::command().debug_assert();
}

#[test]
fn split_planning_uses_native_admission_without_a_family_flag() {
let argv = [
Expand Down
7 changes: 7 additions & 0 deletions crates/skippy-correctness/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -558,6 +558,13 @@ pub enum StatePayloadKind {
mod tests {
use super::*;

#[test]
#[cfg(debug_assertions)]
fn cli_definition_is_internally_consistent() {
use clap::CommandFactory;
Cli::command().debug_assert();
}

#[test]
fn remote_handoff_listener_defaults_to_loopback() {
let cli = Cli::try_parse_from([
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,3 +174,10 @@ fn generic_facade_prepares_full_mounted_roster_and_correlates_locator_before_out
assert!(!refused.exists());
temp.close().unwrap();
}

#[test]
#[cfg(debug_assertions)]
fn cli_definition_is_internally_consistent() {
use clap::CommandFactory;
Cli::command().debug_assert();
}
12 changes: 12 additions & 0 deletions crates/skippy-model-package/src/layer_job/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -255,3 +255,15 @@ mod output_tests {
}
}
}

#[cfg(test)]
mod tests {
use super::*;

#[test]
#[cfg(debug_assertions)]
fn cli_definition_is_internally_consistent() {
use clap::CommandFactory;
Cli::command().debug_assert();
}
}
12 changes: 12 additions & 0 deletions crates/skippy-model-package/src/snapshot_promotion/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,3 +116,15 @@ pub fn run(output: &mut dyn std::io::Write, diagnostics: &mut dyn std::io::Write
diagnostics.flush()?;
Ok(())
}

#[cfg(test)]
mod tests {
use super::*;

#[test]
#[cfg(debug_assertions)]
fn cli_definition_is_internally_consistent() {
use clap::CommandFactory;
Cli::command().debug_assert();
}
}
Loading