about summary refs log tree commit diff
path: root/tvix/eval/src/test_utils.rs
blob: a7d1c3f96899a06a9499a90d4cd662257f58d215 (plain) (blame)
1
2
3
4
5
6
7
8
use codemap::CodeMap;

/// Create a dummy [`codemap::Span`] for use in tests
pub(crate) fn dummy_span() -> codemap::Span {
    let mut codemap = CodeMap::new();
    let file = codemap.add_file("<dummy>".to_owned(), "<dummy>".to_owned());
    file.span
}