#quickcheck #testing #derive #macro

dev quickcheck_derive

Derives quickcheck traits

7 releases

Uses old Rust 2015

0.3.0 Oct 20, 2020
0.2.1 Sep 22, 2018
0.1.3 Sep 4, 2018
0.1.2 Aug 24, 2018
0.1.0 Sep 28, 2017

#78 in Testing

Download history 2927/week @ 2021-07-02 3025/week @ 2021-07-09 2746/week @ 2021-07-16 3642/week @ 2021-07-23 3356/week @ 2021-07-30 4148/week @ 2021-08-06 3530/week @ 2021-08-13 2506/week @ 2021-08-20 2058/week @ 2021-08-27 2008/week @ 2021-09-03 2186/week @ 2021-09-10 2170/week @ 2021-09-17 1802/week @ 2021-09-24 985/week @ 2021-10-01 750/week @ 2021-10-08 1184/week @ 2021-10-15

10,850 downloads per month
Used in less than 6 crates

MIT/Apache

7KB
128 lines

NOTICE

Before using this crate, please evaluate quickcheck's official derive crate.

quickcheck_derive

Travis (.org) Crates.io

This crate adds a derive for the Arbitrary trait from the quickcheck crate.

Requirements

You need the following dependencies in your Cargo.toml:

  • quickcheck >= 0.7
  • rand

Usage

#[macro_use]
extern crate quickcheck_derive;

#[derive(Arbitrary,Clone)]
struct Data {
    foo: i32,
    bar: String,
}

Dependencies

~0.4–0.8MB
~19K SLoC