()
| 58 | |
| 59 | #[test] |
| 60 | fn test_find_struct_range() { |
| 61 | let list = LocList::read_str(INPUT, Language::Rust).unwrap(); |
| 62 | list.print_debug(" WHOLE "); |
| 63 | assert_eq!( |
| 64 | list.block_range_of_line_number(line_number!(3)).unwrap(), |
| 65 | "1:8".parse().unwrap(), |
| 66 | ); |
| 67 | assert_eq!( |
| 68 | list.block_range_of_line_number(line_number!(17)).unwrap(), |
| 69 | "9:17".parse().unwrap(), |
| 70 | ); |
| 71 | assert_eq!( |
| 72 | list.block_range_of_line_number(line_number!(20)).unwrap(), |
| 73 | "18:26".parse().unwrap(), |
| 74 | ); |
| 75 | } |
| 76 | |
| 77 | #[test] |
| 78 | fn test_match_struct() { |
nothing calls this directly
no test coverage detected