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

Function test_reasoning_with_content

atomic-agent/src/transcript/tests.rs:271–286  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

269
270#[test]
271fn test_reasoning_with_content() {
272 let r = TurnReasoning {
273 intent: "Fix the bug".into(),
274 outcome: "Bug fixed".into(),
275 learnings: Learnings {
276 repo: vec!["Uses RS256".into()],
277 code: vec![CodeLearning::new("file.rs", Some(42), "Wrong timezone")],
278 workflow: vec!["Use --lib flag".into()],
279 },
280 friction: vec!["Complex middleware".into()],
281 open_items: vec!["Refresh endpoint".into()],
282 };
283 assert!(!r.is_empty());
284 assert_eq!(r.learning_count(), 3);
285 assert!(r.has_code_learnings());
286}
287
288#[test]
289fn test_reasoning_display() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected