Debian Codegraph @

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

raw
1 diff --git a/tests/redhat-v3.rs b/tests/redhat-v3.rs
2 index cf7e90f..28aafc0 100644
3 --- a/tests/redhat-v3.rs
4 +++ b/tests/redhat-v3.rs
5 @@ -27,13 +27,13 @@ fn run_tests_from_file(name: &str) {
6 }
7 }
8
9 -#[test]
10 +// #[test] disabled due to missing testdata
11 fn cvss_v3_simple() {
12 run_tests_from_file("vectors_simple3");
13 run_tests_from_file("vectors_simple31");
14 }
15
16 -#[test]
17 +// #[test] disabled due to missing testdata
18 fn cvss_v3_random() {
19 run_tests_from_file("vectors_random3");
20 run_tests_from_file("vectors_random31");
21 diff --git a/tests/redhat-v4.rs b/tests/redhat-v4.rs
22 index 9508a8d..35b2c6e 100644
23 --- a/tests/redhat-v4.rs
24 +++ b/tests/redhat-v4.rs
25 @@ -22,37 +22,37 @@ fn run_tests_from_file(name: &str, test_serialization: bool) {
26 }
27 }
28
29 -#[test]
30 +// #[test] disabled due to missing testdata
31 fn cvss_v4_base() {
32 // All vector combinations with only mandatory fields, 104,976 vectors.
33 run_tests_from_file("vectors_base4", true);
34 }
35
36 -#[test]
37 +// #[test] disabled due to missing testdata
38 fn cvss_v4_modified() {
39 // All vector combinations of modified environmental fields, 373,248 vectors.
40 run_tests_from_file("vectors_modified4", true);
41 }
42
43 -#[test]
44 +// #[test] disabled due to missing testdata
45 fn cvss_v4_supplemental() {
46 // All vector combinations of supplemental fields, 576 vectors.
47 run_tests_from_file("vectors_supplemental4", true);
48 }
49
50 -#[test]
51 +// #[test] disabled due to missing testdata
52 fn cvss_v4_security() {
53 // All vector combinations of security fields, 54 vectors.
54 run_tests_from_file("vectors_security4", true);
55 }
56
57 -#[test]
58 +// #[test] disabled due to missing testdata
59 fn cvss_v4_threat() {
60 // All vector combinations of threat fields, 6 vectors.
61 run_tests_from_file("vectors_threat4", true);
62 }
63
64 -#[test]
65 +// #[test] disabled due to missing testdata
66 fn cvss_v4_random() {
67 // Random vector combinations across all fields, 10,000 vectors.
68 run_tests_from_file("vectors_random4", false);