blob: 4a9150aaf0ab00e26c6fc166b97422e85c0e7022 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
mod stats {
mod from_bytes {
use gix_filter::eol;
#[test]
fn all() {
let stats = eol::Stats::from_bytes(b"\n\r\nhi\rho\0\tanother line\nother\r\nmixed");
assert_eq!(
stats,
eol::Stats {
null: 1,
lone_cr: 1,
lone_lf: 2,
crlf: 2,
printable: 27,
non_printable: 1,
}
);
assert!(stats.is_binary());
}
}
}
pub(crate) mod convert_to_git;
mod convert_to_worktree;
|