Debian Codegraph @

debian/patches/2001_no_net.patch

raw symbols SCIP
1 Description: skip network-requiring tests by default
2 Author: Jonas Smedegaard <[email protected]>
3 Forwarded: not-needed
4 Last-Update: 2025-08-31
5 ---
6 This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
7 --- a/src/client.rs
8 +++ b/src/client.rs
9 @@ -97,7 +97,7 @@
10 ///
11 /// Missing: HSTS support, authentication and keep alive.
12 ///
13 -/// ```
14 +/// ```no_run
15 /// use http::header::CONTENT_TYPE;
16 /// use oxhttp::model::{Body, HeaderName, Method, Request, StatusCode};
17 /// use oxhttp::Client;
18 @@ -410,6 +410,7 @@
19 use crate::model::header::CONTENT_TYPE;
20
21 #[test]
22 + #[ignore]
23 fn test_http_get_ok() -> Result<()> {
24 let client = Client::new();
25 let response = client.request(
26 @@ -426,6 +427,7 @@
27 }
28
29 #[test]
30 + #[ignore]
31 fn test_http_get_ok_with_user_agent_and_timeout() -> Result<()> {
32 let client = Client::new()
33 .with_user_agent("OxHTTP/1.0")
34 @@ -443,6 +445,7 @@
35 }
36
37 #[test]
38 + #[ignore]
39 fn test_http_get_ok_explicit_port() -> Result<()> {
40 let client = Client::new();
41 let response = client.request(
42 @@ -457,6 +460,7 @@
43 }
44
45 #[test]
46 + #[ignore]
47 fn test_http_wrong_port() {
48 let client = Client::new();
49 assert!(client
50 @@ -477,6 +481,7 @@
51 feature = "native-tls"
52 ))]
53 #[test]
54 + #[ignore]
55 fn test_https_get_ok() -> Result<()> {
56 let client = Client::new();
57 let response = client.request(
58 @@ -498,6 +503,7 @@
59 feature = "native-tls"
60 )))]
61 #[test]
62 + #[ignore]
63 fn test_https_get_err() {
64 let client = Client::new();
65 assert!(client
66 @@ -511,6 +517,7 @@
67 }
68
69 #[test]
70 + #[ignore]
71 fn test_http_get_not_found() -> Result<()> {
72 let client = Client::new();
73 let response = client.request(
74 @@ -547,6 +554,7 @@
75 feature = "native-tls"
76 ))]
77 #[test]
78 + #[ignore]
79 fn test_redirection() -> Result<()> {
80 let client = Client::new()
81 .with_redirection_limit(5)
82 --- a/README.md
83 +++ b/README.md
84 @@ -33,7 +33,7 @@
85
86 Example:
87
88 -```rust
89 +```rust,no_run
90 use oxhttp::Client;
91 use oxhttp::model::{Body, Request, Method, StatusCode, HeaderName};
92 use oxhttp::model::header::CONTENT_TYPE;