()
| 339 | |
| 340 | #[test] |
| 341 | fn test_code_learning_builder() { |
| 342 | let l = CodeLearning::new("file.rs", Some(42), "Bug") |
| 343 | .with_function("validate_token") |
| 344 | .with_end_line(50) |
| 345 | .with_category("security"); |
| 346 | assert_eq!(l.function.as_deref(), Some("validate_token")); |
| 347 | assert_eq!(l.end_line, Some(50)); |
| 348 | assert_eq!(l.category.as_deref(), Some("security")); |
| 349 | } |
| 350 | |
| 351 | #[test] |
| 352 | fn test_code_learning_display() { |
nothing calls this directly
no test coverage detected