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:607–628  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

print_reasoningFunction · 0.85

Tested by

no test coverage detected