From 221d3b9485a1d84fc4d9f06d864242d3c393d0ba Mon Sep 17 00:00:00 2001 From: Griffin Smith Date: Sun, 18 Sep 2022 12:38:53 -0400 Subject: test(tvix/eval): Add proof-of-concept test for Chunk This is pretty boring at the moment, but mostly serves as a foot in the door in the direction of writing more tests Change-Id: Id88eb4ec7e53ebb2d5b5c254c8f45ff750238811 Reviewed-on: https://cl.tvl.fyi/c/depot/+/6637 Autosubmit: grfn Tested-by: BuildkiteCI Reviewed-by: tazjin --- tvix/eval/src/test_utils.rs | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 tvix/eval/src/test_utils.rs (limited to 'tvix/eval/src/test_utils.rs') diff --git a/tvix/eval/src/test_utils.rs b/tvix/eval/src/test_utils.rs new file mode 100644 index 0000000000..a7d1c3f968 --- /dev/null +++ b/tvix/eval/src/test_utils.rs @@ -0,0 +1,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("".to_owned(), "".to_owned()); + file.span +} -- cgit 1.4.1