Skip to content

Commit

Permalink
feat: add more test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
radlinskii committed Jul 27, 2023
1 parent 2a906b3 commit af960a8
Show file tree
Hide file tree
Showing 7 changed files with 358 additions and 72 deletions.
229 changes: 223 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ edition = "2021"
[dependencies]
clap = { version = "4.3.15", features = ["derive"] }
dirs = "5.0.1"
mockall = "0.11.4"
serde = { version = "1.0.171", features = ["derive"] }
serde_json = "1.0.103"
tempfile = "3.7.0"
termion = "2.0.1"
14 changes: 14 additions & 0 deletions src/args.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
use clap::Parser;

/// cli typing test
#[derive(Parser, Debug)]
#[command(author, version, about, long_about = None)]
pub struct Args {
/// duration of the test in seconds
#[arg(short, long)]
pub duration: Option<u16>,

/// indicates if test should include numbers
#[arg(short, long)]
pub numbers: Option<bool>,
}
Loading

0 comments on commit af960a8

Please sign in to comment.