Skip to content

Commit

Permalink
s/cover/coverage/
Browse files Browse the repository at this point in the history
  • Loading branch information
caspervonb committed Jul 28, 2020
1 parent 292afc6 commit 15c592a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
14 changes: 7 additions & 7 deletions cli/flags.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ pub enum DenoSubcommand {
allow_none: bool,
include: Option<Vec<String>>,
filter: Option<String>,
cover: bool,
coverage: bool,
},
Types,
Upgrade {
Expand Down Expand Up @@ -555,7 +555,7 @@ fn test_parse(flags: &mut Flags, matches: &clap::ArgMatches) {
let allow_none = matches.is_present("allow_none");
let quiet = matches.is_present("quiet");
let filter = matches.value_of("filter").map(String::from);
let cover = matches.is_present("cover");
let coverage = matches.is_present("coverage");
let include = if matches.is_present("files") {
let files: Vec<String> = matches
.values_of("files")
Expand All @@ -573,7 +573,7 @@ fn test_parse(flags: &mut Flags, matches: &clap::ArgMatches) {
include,
filter,
allow_none,
cover,
coverage,
};
}

Expand Down Expand Up @@ -1141,8 +1141,8 @@ fn test_subcommand<'a, 'b>() -> App<'a, 'b> {
.help("Run tests with this string or pattern in the test name"),
)
.arg(
Arg::with_name("cover")
.long("cover")
Arg::with_name("coverage")
.long("coverage")
.takes_value(false)
.help("Collect coverage information"),
)
Expand Down Expand Up @@ -2694,7 +2694,7 @@ mod tests {
allow_none: true,
quiet: false,
include: Some(svec!["dir1/", "dir2/"]),
cover: false,
coverage: false,
},
allow_net: true,
..Flags::default()
Expand All @@ -2714,7 +2714,7 @@ mod tests {
quiet: false,
filter: Some("foo".to_string()),
include: Some(svec!["dir1"]),
cover: false,
coverage: false,
},
..Flags::default()
}
Expand Down
8 changes: 4 additions & 4 deletions cli/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,7 @@ async fn test_command(
quiet: bool,
allow_none: bool,
filter: Option<String>,
cover: bool,
coverage: bool,
) -> Result<(), ErrBox> {
let global_state = GlobalState::new(flags.clone())?;
let cwd = std::env::current_dir().expect("No current directory");
Expand Down Expand Up @@ -682,7 +682,7 @@ async fn test_command(
.file_fetcher
.save_source_file_in_cache(&main_module, source_file);

let mut maybe_coverage_collector = if cover {
let mut maybe_coverage_collector = if coverage {
let inspector = match worker.inspector.as_mut() {
Some(inspector) => inspector,
None => {
Expand Down Expand Up @@ -808,9 +808,9 @@ pub fn main() {
include,
allow_none,
filter,
cover,
coverage,
} => {
test_command(flags, include, fail_fast, quiet, allow_none, filter, cover)
test_command(flags, include, fail_fast, quiet, allow_none, filter, coverage)
.boxed_local()
}
DenoSubcommand::Completions { buf } => {
Expand Down

0 comments on commit 15c592a

Please sign in to comment.