github
5 of 165 new or added lines in 28 files covered. (3.03%)
1581 existing lines in 46 files now uncovered.93 of 2515 relevant lines covered (3.7%)
0.06 hits per line
UNCOV
1
|
pub fn has_dup<T: PartialEq>(slice: &[T]) -> bool {
|
× |
UNCOV
2
|
for i in 1..slice.len() { |
× |
UNCOV
3
|
if slice[i..].contains(&slice[i - 1]) { |
× |
UNCOV
4
|
return true; |
× |
UNCOV
5
|
} |
× |
6 |
} |
|
UNCOV
7
|
false
|
× |
UNCOV
8
|
} |
× |
9 |
|
|
UNCOV
10
|
pub fn is_sorted<T>(data: &[T]) -> bool
|
× |
UNCOV
11
|
where |
× |
UNCOV
12
|
T: Ord, |
× |
UNCOV
13
|
{ |
× |
UNCOV
14
|
if data.len() == 1 { |
× |
15 |
return true; |
× |
UNCOV
16
|
} |
× |
UNCOV
17
|
data.windows(2).all(|w| w[0] <= w[1]) |
× |
UNCOV
18
|
} |
× |