mirror of
https://github.com/denoland/deno.git
synced 2025-07-24 13:44:08 +00:00
fix(coverage): ensure coverage is only collected in certain situations (#15467)
This commit is contained in:
parent
ee2f4e745c
commit
8eed24cd3d
7 changed files with 60 additions and 12 deletions
|
@ -162,6 +162,12 @@ pub struct RunFlags {
|
|||
pub script: String,
|
||||
}
|
||||
|
||||
impl RunFlags {
|
||||
pub fn is_stdin(&self) -> bool {
|
||||
self.script == "-"
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, Deserialize, Serialize)]
|
||||
pub struct TaskFlags {
|
||||
pub cwd: Option<String>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue