()
| 260 | |
| 261 | #[test] |
| 262 | fn test_vault_commands_variants() { |
| 263 | // Ensure all variants exist and can be matched |
| 264 | fn check_variant(cmd: &VaultCommands) -> &'static str { |
| 265 | match cmd { |
| 266 | VaultCommands::Init(_) => "init", |
| 267 | VaultCommands::Show(_) => "show", |
| 268 | VaultCommands::List(_) => "list", |
| 269 | VaultCommands::Materialize(_) => "materialize", |
| 270 | VaultCommands::Sync(_) => "sync", |
| 271 | VaultCommands::Goal(_) => "goal", |
| 272 | VaultCommands::Intent(_) => "intent", |
| 273 | VaultCommands::Memory(_) => "memory", |
| 274 | VaultCommands::Context(_) => "context", |
| 275 | VaultCommands::Summaries(_) => "summaries", |
| 276 | VaultCommands::Query(_) => "query", |
| 277 | } |
| 278 | } |
| 279 | |
| 280 | // Verify variant name extraction works for each variant name string |
| 281 | let names = [ |
| 282 | "init", |
| 283 | "show", |
| 284 | "list", |
| 285 | "materialize", |
| 286 | "sync", |
| 287 | "goal", |
| 288 | "context", |
| 289 | "summaries", |
| 290 | "query", |
| 291 | "intent", |
| 292 | "memory", |
| 293 | ]; |
| 294 | assert_eq!(names.len(), 11); |
| 295 | } |
| 296 | } |
nothing calls this directly
no outgoing calls
no test coverage detected