Debian Codegraph @

debian/patches/remove-partial-io.patch

raw symbols SCIP
1 Description: Remove partial-io as it's archived upstream
2 Last-Update: 2022-09-02
3 ---
4 This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
5 Index: zstd/Cargo.toml
6 ===================================================================
7 --- zstd.orig/Cargo.toml
8 +++ zstd/Cargo.toml
9 @@ -117,8 +117,5 @@ features = ["derive"]
10 [dev-dependencies.humansize]
11 version = "2.0"
12
13 -[dev-dependencies.partial-io]
14 -version = "0.5"
15 -
16 [dev-dependencies.walkdir]
17 version = "2.2"
18 Index: zstd/src/stream/write/tests.rs
19 ===================================================================
20 --- zstd.orig/src/stream/write/tests.rs
21 +++ zstd/src/stream/write/tests.rs
22 @@ -1,8 +1,6 @@
23 use std::io::{Cursor, Write};
24 use std::iter;
25
26 -use partial_io::{PartialOp, PartialWrite};
27 -
28 use crate::stream::decode_all;
29 use crate::stream::write::{Decoder, Encoder};
30
31 @@ -26,6 +24,7 @@ fn test_cycle() {
32 assert_eq!(input, &decoded[..]);
33 }
34
35 +/*
36 /// Test that flush after a partial write works successfully without
37 /// corrupting the frame. This test is in this module because it checks
38 /// internal implementation details.
39 @@ -69,4 +68,4 @@ fn setup_partial_write(input_data: &[u8]
40 }
41
42 z
43 -}
44 +}*/
45 Index: zstd/src/stream/tests.rs
46 ===================================================================
47 --- zstd.orig/src/stream/tests.rs
48 +++ zstd/src/stream/tests.rs
49 @@ -1,8 +1,6 @@
50 use super::{copy_encode, decode_all, encode_all};
51 use super::{Decoder, Encoder};
52
53 -use partial_io::{PartialOp, PartialWrite};
54 -
55 use std::io;
56 use std::iter;
57
58 @@ -54,7 +52,7 @@ fn test_flush() {
59 assert_eq!(s, b"hello", "Error decoding after flush.");
60 }
61
62 -#[test]
63 +/*#[test]
64 fn test_try_finish() {
65 use std::io::Write;
66 let mut z = setup_try_finish();
67 @@ -139,7 +137,7 @@ fn test_failing_write() {
68 &input,
69 "WouldBlock errors should not corrupt stream"
70 );
71 -}
72 +}*/
73
74 #[test]
75 fn test_invalid_frame() {