Skip to content

Commit ec6a0c7

Browse files
authored
quickchecking crate cleanup (#2572)
1 parent 43741d2 commit ec6a0c7

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bindgen-tests/tests/quickchecking/Cargo.toml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
[package]
22
name = "quickchecking"
33
description = "Bindgen property tests with quickcheck. Generate random valid C code and pass it to the csmith/predicate.py script"
4-
version = "0.1.0"
5-
authors = ["Shea Newton <[email protected]>"]
4+
version = "0.0.0"
5+
publish = false
6+
rust-version = "1.64"
7+
edition = "2018"
68

79
[lib]
810
name = "quickchecking"

bindgen-tests/tests/quickchecking/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Property tests for `bindgen` with `quickchecking`
22

33
`quickchecking` generates random C headers to test `bindgen`
4-
using the [`quickcheck`][quickcheck] property testing crate. When testing
4+
using the [`quickcheck`] property testing crate. When testing
55
`bindgen` with `quickchecking`, the generated header files are passed to
66
`bindgen`'s `csmith-fuzzing/predicate.py` script. If that script fails,
77
`quickchecking` panics, and you can report an issue containing the test case!
@@ -36,4 +36,5 @@ Run `quickchecking` binary to generate and test fuzzed C headers with
3636
```
3737
$ cargo run --bin=quickchecking -- -h
3838
```
39-
[quickcheck]: https://github.com/BurntSushi/quickcheck
39+
40+
[`quickcheck`]: https://github.com/BurntSushi/quickcheck

bindgen-tests/tests/quickchecking/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ fn run_predicate_script(
8282
.output()?;
8383
}
8484

85-
Ok(Command::new(&predicate_script_path_string)
85+
Ok(Command::new(predicate_script_path_string)
8686
.arg(&header_path_string)
8787
.output()?)
8888
}

0 commit comments

Comments
 (0)