()
| 41 | |
| 42 | #[test] |
| 43 | fn test_append_goal() { |
| 44 | let mut acc = ProvenanceAccumulator::new("s1"); |
| 45 | let id = acc.append_goal("Fix the auth bug", 1000); |
| 46 | |
| 47 | assert!(!id.is_empty()); |
| 48 | assert_eq!(acc.node_count(), 1); |
| 49 | assert_eq!(acc.stats().goal_count, 1); |
| 50 | assert_eq!(acc.current_goal(), Some(id.as_str())); |
| 51 | |
| 52 | let node = &acc.nodes()[0]; |
| 53 | assert_eq!(node.kind, NodeKind::Goal); |
| 54 | assert_eq!(node.summary, "Fix the auth bug"); |
| 55 | assert_eq!(node.timestamp, 1000); |
| 56 | } |
| 57 | |
| 58 | #[test] |
| 59 | fn test_chained_goals() { |
nothing calls this directly
no test coverage detected