aboutsummaryrefslogtreecommitdiff
path: root/crates/test_utils
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-02-26 10:59:59 +0000
committerGitHub <[email protected]>2020-02-26 10:59:59 +0000
commit21fa338bd61bf6d4959b7f052d4f89d4594e419b (patch)
tree11c6260becae314db92d671d84e58830971c948b /crates/test_utils
parentae0aeb1b23aa4bc96a7113de784799365c2b4358 (diff)
parent52fd19621caa62ddd7d3f29b69a5133650bc1294 (diff)
Merge pull request #3316 from matklad/dedup
Remove code duplication in tests
Diffstat (limited to 'crates/test_utils')
-rw-r--r--crates/test_utils/src/lib.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/crates/test_utils/src/lib.rs b/crates/test_utils/src/lib.rs
index e6e8d7110..69deddcb5 100644
--- a/crates/test_utils/src/lib.rs
+++ b/crates/test_utils/src/lib.rs
@@ -83,6 +83,7 @@ fn try_extract_range(text: &str) -> Option<(TextRange, String)> {
83 Some((TextRange::from_to(start, end), text)) 83 Some((TextRange::from_to(start, end), text))
84} 84}
85 85
86#[derive(Clone, Copy)]
86pub enum RangeOrOffset { 87pub enum RangeOrOffset {
87 Range(TextRange), 88 Range(TextRange),
88 Offset(TextUnit), 89 Offset(TextUnit),