()
| 269 | |
| 270 | #[test] |
| 271 | fn 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] |
| 289 | fn test_reasoning_display() { |
nothing calls this directly
no outgoing calls
no test coverage detected