26382a7ac6
CodeQL / Analyze (javascript-typescript) (push) Waiting to run
JetBrains Plugin / Actionlint (push) Waiting to run
CodeQL / Analyze (actions) (push) Waiting to run
CodeQL / Analyze (rust) (push) Waiting to run
JetBrains Plugin / Validation (push) Waiting to run
JetBrains Plugin / Build (push) Waiting to run
JetBrains Plugin / Test (push) Blocked by required conditions
Security Check / Security Scan (push) Waiting to run
CI / Clippy (push) Failing after 15m13s
CI / Test (ubuntu-latest) (push) Failing after 16m1s
CI / Test (macos-latest) (push) Has been cancelled
CI / Test (windows-latest) (push) Has been cancelled
CI / Build (no embeddings / no ORT) (push) Has been cancelled
CI / Format (push) Has been cancelled
CI / Cookbook (Node) (push) Has been cancelled
CI / Pi Extension (Node) (push) Has been cancelled
CI / Rust SDK (lean-ctx-client) (push) Has been cancelled
CI / Embed SDK (lean-ctx-sdk) (push) Has been cancelled
CI / Python SDK (leanctx) (push) Has been cancelled
CI / Hermes Plugin (Python) (push) Has been cancelled
CI / SDK Conformance Matrix (push) Has been cancelled
CI / Coverage (push) Has been cancelled
CI / cargo-deny (push) Has been cancelled
CI / Adversarial Safety (push) Has been cancelled
CI / Benchmarks (push) Has been cancelled
CI / Output-Quality Gate (eval A/B) (push) Has been cancelled
CI / Documentation (push) Has been cancelled
CI / CI Green (push) Has been cancelled
24 lines
695 B
Rust
24 lines
695 B
Rust
//! Integration tests for the shell completion engine.
|
|
|
|
use lean_ctx::cli::completions::spec::COMMAND_TREE;
|
|
|
|
#[test]
|
|
fn top_level_has_shell_and_config() {
|
|
let names: Vec<&str> = COMMAND_TREE.iter().map(|n| n.name).collect();
|
|
assert!(names.contains(&"shell"), "missing 'shell'");
|
|
assert!(names.contains(&"config"), "missing 'config'");
|
|
assert!(names.contains(&"proxy"), "missing 'proxy'");
|
|
}
|
|
|
|
#[test]
|
|
fn alias_command_resolves() {
|
|
let gotchas_node = COMMAND_TREE
|
|
.iter()
|
|
.find(|n| n.name == "gotchas")
|
|
.expect("gotchas command must exist");
|
|
assert!(
|
|
gotchas_node.aliases.contains(&"bugs"),
|
|
"gotchas must have 'bugs' alias"
|
|
);
|
|
}
|