File: 2004_quickcheck-ext.patch

package info (click to toggle)
rust-libp2p-identity 0.2.10%2B20250205%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 804 kB
  • sloc: makefile: 8; sh: 1
file content (40 lines) | stat: -rw-r--r-- 919 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
Description: avoid tests that use local crate quickcheck-ext
 Keeping the code, so as to support checking the tests at build-time,
 would require either not testing at all as autopkgtests,
 or embedding the local crate with each binary package
 and patching the test building routines to use the embedded crate.
Author: Jonas Smedegaard <dr@jones.dk>
Forwarded: not-needed
Last-Update: 2024-06-12
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/identity/src/ed25519.rs
+++ b/identity/src/ed25519.rs
@@ -205,6 +205,7 @@
     }
 }
 
+/*
 #[cfg(test)]
 mod tests {
     use quickcheck::*;
@@ -257,3 +258,4 @@
         assert!(!pk.verify(invalid_msg, &sig));
     }
 }
+*/
--- a/identity/src/rsa.rs
+++ b/identity/src/rsa.rs
@@ -318,6 +318,7 @@
     }
 }
 
+/*
 #[cfg(test)]
 mod tests {
     use quickcheck::*;
@@ -366,3 +367,4 @@
             .quickcheck(prop as fn(_, _) -> _);
     }
 }
+*/