Skip to content

Commit 92c7411

Browse files
committed
Fix cow tests
1 parent 50ea80b commit 92c7411

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

micropb/src/decode.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1171,7 +1171,7 @@ mod tests {
11711171
container_test!(string, string_heapless, heapless::String::<4>, true, false);
11721172
container_test!(string, string_alloc, String, false, false);
11731173
container_test!(string, string_fixed_len, FixedLenString::<4>, true, true);
1174-
container_test!(string, string_cow, Cow::<'static, str>, true, true);
1174+
container_test!(string, string_cow, Cow::<'static, str>, false, false);
11751175

11761176
fn bytes<S: PbBytes + AsRef<[u8]> + Default>(fixed_cap: bool, fixed_len: bool) {
11771177
let mut bytes = S::default();
@@ -1220,7 +1220,7 @@ mod tests {
12201220
container_test!(bytes, bytes_heapless, heapless::Vec::<_, 3>, true, false);
12211221
container_test!(bytes, bytes_alloc, Vec<_>, false, false);
12221222
container_test!(bytes, bytes_fixed, [u8; 3], true, true);
1223-
container_test!(bytes, bytes_cow, Cow::<'static, [u8]>, true, true);
1223+
container_test!(bytes, bytes_cow, Cow::<'static, [u8]>, false, false);
12241224

12251225
fn packed<S: PbVec<u32> + AsRef<[u32]> + Default>(fixed_cap: bool, _fixed_len: bool) {
12261226
let mut vec1 = S::default();
@@ -1261,7 +1261,7 @@ mod tests {
12611261
container_test!(packed, packed_arrayvec, ArrayVec::<_, 5>, true, false);
12621262
container_test!(packed, packed_heapless, heapless::Vec::<_, 5>, true, false);
12631263
container_test!(packed, packed_alloc, Vec<_>, false, false);
1264-
container_test!(packed, packed_cow, Cow::<'static, [_]>, true, true);
1264+
container_test!(packed, packed_cow, Cow::<'static, [_]>, false, false);
12651265

12661266
//#[cfg(target_endian = "little")]
12671267
//fn packed_fixed<S: PbVec<u32>>(fixed_cap: bool) {

0 commit comments

Comments
 (0)