Single-commit clean baseline after security scrub of niche-tells, project codenames, internal jargon, and contributor-email leaks. Contents: - 100 Rust crates (_primitives/_rust/) - 37 agent manifests (_manifests/) + generated specs (_generated/) - 67 user-invocable skills (skills/) - 33 hooks (hooks/) - Composition blocks (_blocks/) - Documentation (docs/, README.md) - TS adapter packages (_ts_packages/) - Assembler (_assembler/) - Roles (_roles/) - Templates (_templates/) - Forgejo CI (.forgejo/) Author: Denis Parfionovich <info@greendragon.info> License: see LICENSE.
28 lines
858 B
Rust
28 lines
858 B
Rust
//! Tooling detection — every binary missing.
|
|
|
|
use kei_machine_probe::{detect_tooling, MockRunner};
|
|
|
|
#[test]
|
|
fn all_missing_yields_all_none() {
|
|
let runner = MockRunner::from_dir(".")
|
|
.with_err("which_ollama", "not installed")
|
|
.with_err("which_brew", "not installed")
|
|
.with_err("which_llama-server", "not installed");
|
|
|
|
let t = detect_tooling(&runner);
|
|
assert!(t.ollama.is_none());
|
|
assert!(t.homebrew.is_none());
|
|
assert!(t.llama_cpp.is_none());
|
|
}
|
|
|
|
#[test]
|
|
fn empty_which_output_treated_as_absent() {
|
|
// `which` sometimes returns empty stdout with exit 0 on some shells.
|
|
let runner = MockRunner::from_dir(".")
|
|
.with_ok("which_ollama", "\n")
|
|
.with_err("which_brew", "no")
|
|
.with_err("which_llama-server", "no");
|
|
|
|
let t = detect_tooling(&runner);
|
|
assert!(t.ollama.is_none());
|
|
}
|