()
| 328 | |
| 329 | #[test] |
| 330 | fn test_code_learning_minimal() { |
| 331 | let l = CodeLearning::new("file.rs", Some(42), "Found a bug"); |
| 332 | assert_eq!(l.path, "file.rs"); |
| 333 | assert_eq!(l.line, Some(42)); |
| 334 | assert_eq!(l.finding, "Found a bug"); |
| 335 | assert!(l.function.is_none()); |
| 336 | assert!(l.category.is_none()); |
| 337 | assert!(!l.is_anchored()); |
| 338 | } |
| 339 | |
| 340 | #[test] |
| 341 | fn test_code_learning_builder() { |
nothing calls this directly
no outgoing calls
no test coverage detected