()
| 371 | |
| 372 | #[test] |
| 373 | fn test_code_learning_anchored() { |
| 374 | let mut l = CodeLearning::new("f.rs", Some(1), "test"); |
| 375 | assert!(!l.is_anchored()); |
| 376 | |
| 377 | l._anchor = Some(GraphAnchor { |
| 378 | trunk: Some((47, 0)), |
| 379 | branches: vec![(47, 12)], |
| 380 | leaves: vec![(47, 34)], |
| 381 | }); |
| 382 | assert!(l.is_anchored()); |
| 383 | } |
| 384 | |
| 385 | #[test] |
| 386 | fn test_code_learning_serde_with_anchor() { |
nothing calls this directly
no outgoing calls
no test coverage detected