You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: gix-ref/tests/refs/file/log.rs
+18-1Lines changed: 18 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -29,6 +29,23 @@ mod line {
29
29
Ok(())
30
30
}
31
31
}
32
+
33
+
mod parse {
34
+
use gix_ref::file::log;
35
+
36
+
#[test]
37
+
fnangle_bracket_in_comment() -> crate::Result{
38
+
let line = log::LineRef::from_bytes(b"7b114132d03c468a9cd97836901553658c9792de 306cdbab5457c323d1201aa8a59b3639f600a758 First Last <first.last@example.com> 1727013187 +0200\trebase (pick): Replace Into<Range<u32>> by From<LineRange>")?;
"rebase (pick): Replace Into<Range<u32>> by From<LineRange>"
45
+
);
46
+
Ok(())
47
+
}
48
+
}
32
49
}
33
50
34
51
mod iter {
@@ -204,7 +221,7 @@ mod iter {
204
221
205
222
letmut iter = gix_ref::file::log::iter::forward(log_first_broken.as_bytes());
206
223
let err = iter.next().expect("error is not none").expect_err("the line is broken");
207
-
assert_eq!(err.to_string(),"In line 1: \"134385fbroken7062102c6a483440bfda2a03 committer <committer@example.com> 946771200 +0000\\tcommit\" did not match '<old-hexsha> <new-hexsha> <name> <<email>> <timestamp> <tz>\\t<message>'");
224
+
assert_eq!(err.to_string(),"In line 1: \"0000000000000000000000000000000000000000 134385fbroken7062102c6a483440bfda2a03 committer <committer@example.com> 946771200 +0000\\tcommit\" did not match '<old-hexsha> <new-hexsha> <name> <<email>> <timestamp> <tz>\\t<message>'");
208
225
assert!(iter.next().expect("a second line").is_ok(),"line parses ok");
0 commit comments