Skip to content

Commit 0b0fda8

Browse files
Introduce a bunch of property-based tests
1 parent 5f0bee4 commit 0b0fda8

File tree

6 files changed

+739
-0
lines changed

6 files changed

+739
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
.fleet/*
44
profile.json
55
.tool-versions
6+
*.proptest-regressions

Cargo.lock

Lines changed: 75 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ rustls = { version = "0.23", features = ["aws_lc_rs"] }
4040
[dev-dependencies]
4141
assert_cmd = "2.0"
4242
predicates = "3.1"
43+
proptest = "1.5"
4344

4445
[lints.clippy]
4546
uninlined_format_args = "allow"

src/lib.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,9 @@
1313
// limitations under the License.
1414

1515
// Re-export modules for testing
16+
pub mod config;
17+
pub mod constants;
18+
pub mod errors;
19+
pub mod output;
1620
pub mod pre_flight;
21+
pub mod tables;

src/output.rs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -471,6 +471,12 @@ pub struct InteractiveProgressReporter {
471471
failures: usize,
472472
}
473473

474+
impl Default for InteractiveProgressReporter {
475+
fn default() -> Self {
476+
Self::new()
477+
}
478+
}
479+
474480
#[allow(dead_code)]
475481
impl InteractiveProgressReporter {
476482
pub fn new() -> Self {
@@ -541,6 +547,12 @@ pub struct NonInteractiveProgressReporter {
541547
bar: Option<ProgressBar>,
542548
}
543549

550+
impl Default for NonInteractiveProgressReporter {
551+
fn default() -> Self {
552+
Self::new()
553+
}
554+
}
555+
544556
#[allow(dead_code)]
545557
impl NonInteractiveProgressReporter {
546558
pub fn new() -> Self {
@@ -590,6 +602,12 @@ impl ProgressReporter for NonInteractiveProgressReporter {
590602
#[allow(dead_code)]
591603
pub struct QuietProgressReporter;
592604

605+
impl Default for QuietProgressReporter {
606+
fn default() -> Self {
607+
Self::new()
608+
}
609+
}
610+
593611
#[allow(dead_code)]
594612
impl QuietProgressReporter {
595613
pub fn new() -> Self {

0 commit comments

Comments
 (0)