MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / test_print_reasoning_basic

Function test_print_reasoning_basic

atomic-cli/src/commands/agent/explain.rs:598–619  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

596
597 #[test]
598 fn test_print_reasoning_basic() {
599 let reasoning = TurnReasoning {
600 intent: "Fix the auth bug".into(),
601 outcome: "Fixed token validation".into(),
602 learnings: transcript::Learnings {
603 repo: vec!["Uses RS256".into()],
604 code: vec![transcript::CodeLearning::new(
605 "src/auth.rs",
606 Some(42),
607 "Wrong timezone",
608 )
609 .with_function("validate_token")
610 .with_category("bug")],
611 workflow: vec!["cargo test --lib is faster".into()],
612 },
613 friction: vec!["Complex middleware".into()],
614 open_items: vec!["Refresh endpoint same bug".into()],
615 };
616
617 // Just verify it doesn't panic
618 print_reasoning(&reasoning);
619 }
620
621 #[test]
622 fn test_print_reasoning_empty() {

Callers

nothing calls this directly

Calls 1

print_reasoningFunction · 0.85

Tested by

no test coverage detected