Debian Codegraph @

debian/patches/no-proptest.patch

raw
1 Index: rangemap/Cargo.toml
2 ===================================================================
3 --- rangemap.orig/Cargo.toml
4 +++ rangemap/Cargo.toml
5 @@ -53,11 +53,6 @@ path = "src/lib.rs"
6 name = "roster"
7 path = "examples/roster.rs"
8
9 -[[bench]]
10 -name = "benches"
11 -path = "benches/benches.rs"
12 -harness = false
13 -
14 [dependencies.quickcheck]
15 version = "1.0.3"
16 optional = true
17 @@ -75,9 +70,6 @@ version = "0.7"
18 [dev-dependencies.permutator]
19 version = "0.4"
20
21 -[dev-dependencies.proptest]
22 -version = "1.4"
23 -
24 [dev-dependencies.rand]
25 version = "0.9"
26
27 Index: rangemap/src/inclusive_map.rs
28 ===================================================================
29 --- rangemap.orig/src/inclusive_map.rs
30 +++ rangemap/src/inclusive_map.rs
31 @@ -971,10 +971,10 @@ mod tests {
32 use super::*;
33 use alloc as std;
34 use alloc::{format, string::String, vec, vec::Vec};
35 - use proptest::prelude::*;
36 - use test_strategy::proptest;
37 + //use proptest::prelude::*;
38 + //use test_strategy::proptest;
39
40 - impl<K, V> Arbitrary for RangeInclusiveMap<K, V>
41 + /*impl<K, V> Arbitrary for RangeInclusiveMap<K, V>
42 where
43 K: Ord + Clone + Debug + StepLite + Arbitrary + 'static,
44 V: Clone + PartialEq + Arbitrary + 'static,
45 @@ -1107,7 +1107,7 @@ mod tests {
46 left.partial_cmp(&right).unwrap(),
47 "ordering is total for ordered parameters"
48 );
49 - }
50 + }*/
51
52 #[test]
53 fn test_from_array() {
54 Index: rangemap/src/inclusive_set.rs
55 ===================================================================
56 --- rangemap.orig/src/inclusive_set.rs
57 +++ rangemap/src/inclusive_set.rs
58 @@ -494,10 +494,10 @@ mod tests {
59 use super::*;
60 use alloc as std;
61 use alloc::{format, vec, vec::Vec};
62 - use proptest::prelude::*;
63 - use test_strategy::proptest;
64 + //use proptest::prelude::*;
65 + //use test_strategy::proptest;
66
67 - impl<T> Arbitrary for RangeInclusiveSet<T>
68 + /*impl<T> Arbitrary for RangeInclusiveSet<T>
69 where
70 T: Ord + Clone + StepLite + Debug + Arbitrary + 'static,
71 {
72 @@ -621,7 +621,7 @@ mod tests {
73 left.partial_cmp(&right).unwrap(),
74 "ordering is total for ordered parameters"
75 );
76 - }
77 + }*/
78
79 #[test]
80 fn test_from_array() {
81 @@ -640,7 +640,7 @@ mod tests {
82 );
83 }
84
85 - #[proptest]
86 + /*#[proptest]
87 fn test_union_overlaps_u8(left: RangeInclusiveSet<u8>, right: RangeInclusiveSet<u8>) {
88 let mut union = RangeInclusiveSet::new();
89 for range in left.union(&right) {
90 @@ -685,7 +685,7 @@ mod tests {
91 assert!(union.overlapping(&range).next().is_none());
92 union.insert(range);
93 }
94 - }
95 + }*/
96
97 trait RangeInclusiveSetExt<T> {
98 fn to_vec(&self) -> Vec<RangeInclusive<T>>;
99 Index: rangemap/src/map.rs
100 ===================================================================
101 --- rangemap.orig/src/map.rs
102 +++ rangemap/src/map.rs
103 @@ -853,10 +853,10 @@ mod tests {
104 use super::*;
105 use alloc as std;
106 use alloc::{format, string::String, vec, vec::Vec};
107 - use proptest::prelude::*;
108 - use test_strategy::proptest;
109 + //use proptest::prelude::*;
110 + //use test_strategy::proptest;
111
112 - impl<K, V> Arbitrary for RangeMap<K, V>
113 + /*impl<K, V> Arbitrary for RangeMap<K, V>
114 where
115 K: Ord + Clone + Debug + Arbitrary + 'static,
116 V: Clone + PartialEq + Arbitrary + 'static,
117 @@ -986,7 +986,7 @@ mod tests {
118 left.partial_cmp(&right).unwrap(),
119 "ordering is total for ordered parameters"
120 );
121 - }
122 + }*/
123
124 #[test]
125 fn test_from_array() {
126 Index: rangemap/src/set.rs
127 ===================================================================
128 --- rangemap.orig/src/set.rs
129 +++ rangemap/src/set.rs
130 @@ -460,10 +460,10 @@ mod tests {
131 use super::*;
132 use alloc as std;
133 use alloc::{format, vec, vec::Vec};
134 - use proptest::prelude::*;
135 - use test_strategy::proptest;
136 + //use proptest::prelude::*;
137 + //use test_strategy::proptest;
138
139 - impl<T> Arbitrary for RangeSet<T>
140 + /*impl<T> Arbitrary for RangeSet<T>
141 where
142 T: Ord + Clone + Debug + Arbitrary + 'static,
143 {
144 @@ -480,9 +480,9 @@ mod tests {
145 })
146 .boxed()
147 }
148 - }
149 + }*/
150
151 - #[proptest]
152 + /*#[proptest]
153 fn test_first(set: RangeSet<u64>) {
154 assert_eq!(set.first(), set.iter().min_by_key(|range| range.start));
155 }
156 @@ -525,7 +525,7 @@ mod tests {
157 let mut backward: Vec<_> = set.overlapping(&range).rev().collect();
158 backward.reverse();
159 assert_eq!(forward, backward);
160 - }
161 + }*/
162
163 // neccessary due to assertion on empty ranges
164 fn filter_ranges<T: Ord>(ranges: Vec<Range<T>>) -> Vec<Range<T>> {
165 @@ -535,7 +535,7 @@ mod tests {
166 .collect()
167 }
168
169 - #[proptest]
170 + /*#[proptest]
171 fn test_arbitrary_set_u8(ranges: Vec<Range<u8>>) {
172 let ranges = filter_ranges(ranges);
173 let set = ranges.iter().fold(RangeSet::new(), |mut set, range| {
174 @@ -590,7 +590,7 @@ mod tests {
175 left.partial_cmp(&right).unwrap(),
176 "ordering is total for ordered parameters"
177 );
178 - }
179 + }*/
180
181 #[test]
182 fn test_from_array() {
183 @@ -609,7 +609,7 @@ mod tests {
184 );
185 }
186
187 - #[proptest]
188 + /*#[proptest]
189 fn test_union_overlaps_u8(left: RangeSet<u8>, right: RangeSet<u8>) {
190 let mut union = RangeSet::new();
191 for range in left.union(&right) {
192 @@ -654,7 +654,7 @@ mod tests {
193 assert!(union.overlapping(&range).next().is_none());
194 union.insert(range);
195 }
196 - }
197 + }*/
198
199 trait RangeSetExt<T> {
200 fn to_vec(&self) -> Vec<Range<T>>;