MCPcopy Create free account
hub / github.com/Canop/codesort / test_find_struct_range

Function test_find_struct_range

tests/rust_structs.rs:60–75  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

58
59#[test]
60fn 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]
78fn test_match_struct() {

Callers

nothing calls this directly

Calls 1

print_debugMethod · 0.45

Tested by

no test coverage detected