You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The final line is a hex-encoded version of the input that caused the crash. You
111
-
can test this directly by editing the `duplicate_crash` test to copy/paste the
112
-
hex output into the call to `extend_vec_from_hex`. Then run the test with
90
+
Generate a human-readable HTML coverage report using a command as below. _The exact paths might differ depending on the target architecture._
113
91
114
-
cargo test
92
+
The demangler `rustfilt` must be installed.
115
93
116
-
Note that if you set your `RUSTFLAGS` while fuzzing (see above) you must make
117
-
sure they are set the same way when running `cargo test`.
94
+
```bash
95
+
cargo cov -- show -Xdemangler=rustfilt target/x86_64-unknown-linux-gnu/coverage/x86_64-unknown-linux-gnu/release/TARGET -instr-profile=fuzz/coverage/TARGET/coverage.profdata -show-line-counts-or-regions -show-instantiations --format html --output-dir=OUTPUT_DIR -ignore-filename-regex="\.cargo"
96
+
```
118
97
119
-
If the `duplicate_crash` function is not present, please add it. A template is
120
-
as follows:
98
+
More information is available in the [rustc book](https://doc.rust-lang.org/stable/rustc/instrument-coverage.html#running-the-instrumented-binary-to-generate-raw-coverage-profiling-data).
121
99
122
-
```
123
-
#[cfg(test)]
124
-
mod tests {
125
-
use miniscript::bitcoin::hex::FromHex;
126
-
127
-
#[test]
128
-
fn duplicate_crash() {
129
-
let v = Vec::from_hex("abcd").unwrap();
130
-
super::do_test(&v);
131
-
}
132
-
}
133
-
```
100
+
## Reproducing and Minimizing Failures
101
+
102
+
(todo -- wait for some failures to happen before filling in this section)
0 commit comments