Debian Codegraph @

debian/patches/disable-tests-missing-data.patch

raw
1 --- a/src/decoder.rs
2 +++ b/src/decoder.rs
3 @@ -1662,3 +1662,3 @@
4 #[test]
5 - fn raw_string_mode_decodes_reader_lookup_results() {
6 + #[cfg(feature = "__with_test_data")] fn raw_string_mode_decodes_reader_lookup_results() {
7 let reader = Reader::open_readfile("test-data/test-data/GeoIP2-City-Test.mmdb").unwrap();
8 @@ -1746,3 +1746,3 @@
9 #[test]
10 - fn test_decoder_accepts_tuple_with_matching_length() {
11 + #[cfg(feature = "__with_test_data")] fn test_decoder_accepts_tuple_with_matching_length() {
12 #[allow(dead_code)]
13 @@ -1777,3 +1777,3 @@
14 #[test]
15 - fn test_decoder_rejects_tuple_length_mismatch() {
16 + #[cfg(feature = "__with_test_data")] fn test_decoder_rejects_tuple_length_mismatch() {
17 #[allow(dead_code)]
18 --- a/src/lib.rs
19 +++ b/src/lib.rs
20 @@ -102,3 +102,3 @@
21 #[cfg(test)]
22 -mod tests {
23 +#[cfg(feature = "__with-test-data")] mod tests {
24 use super::*;
25 --- a/src/result.rs
26 +++ b/src/result.rs
27 @@ -684,3 +684,3 @@
28 #[test]
29 - fn test_decode_path_error_includes_path() {
30 + #[cfg(feature = "__with-test-data")] fn test_decode_path_error_includes_path() {
31 use crate::Reader;
32 --- a/Cargo.toml
33 +++ b/Cargo.toml
34 @@ -57,2 +57,3 @@
35 path = "src/lib.rs"
36 +doctests = false
37
38 --- a/src/reader_test.rs
39 +++ b/src/reader_test.rs
40 @@ -1 +1,2 @@
41 +#![cfg(feature = "__with-test-data")]
42 use std::net::IpAddr;