Lines Matching full:snippet
2 use annotate_snippets::{display_list as dl, formatter::get_term_style, snippet};
6 let input = snippet::Snippet { in test_format_title()
7 title: Some(snippet::Annotation { in test_format_title()
10 annotation_type: snippet::AnnotationType::Error, in test_format_title()
41 let input = snippet::Snippet { in test_format_slice()
44 slices: vec![snippet::Slice { in test_format_slice()
95 let input = snippet::Snippet { in test_format_slices_continuation()
99 snippet::Slice { in test_format_slices_continuation()
106 snippet::Slice { in test_format_slices_continuation()
179 let input = snippet::Snippet { in test_format_slice_annotation_standalone()
182 slices: vec![snippet::Slice { in test_format_slice_annotation_standalone()
186 annotations: vec![snippet::SourceAnnotation { in test_format_slice_annotation_standalone()
189 annotation_type: snippet::AnnotationType::Info, in test_format_slice_annotation_standalone()
250 let input = snippet::Snippet { in test_format_label()
252 footer: vec![snippet::Annotation { in test_format_label()
255 annotation_type: snippet::AnnotationType::Error, in test_format_label()
285 let input = snippet::Snippet { in test_i26()
288 slices: vec![snippet::Slice { in test_i26()
289 annotations: vec![snippet::SourceAnnotation { in test_i26()
292 annotation_type: snippet::AnnotationType::Error, in test_i26()
307 let snippets = snippet::Snippet { in test_i_29()
308 title: Some(snippet::Annotation { in test_i_29()
311 annotation_type: snippet::AnnotationType::Error, in test_i_29()
314 slices: vec![snippet::Slice { in test_i_29()
318 annotations: vec![snippet::SourceAnnotation { in test_i_29()
321 annotation_type: snippet::AnnotationType::Error, in test_i_29()