Skip to content

Commit

Permalink
Test coveragegit status
Browse files Browse the repository at this point in the history
  • Loading branch information
scottopell committed May 21, 2024
1 parent 5bb0be5 commit 66984d7
Show file tree
Hide file tree
Showing 4 changed files with 130 additions and 94 deletions.
82 changes: 59 additions & 23 deletions Cargo.lock

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

1 change: 1 addition & 0 deletions lib/saluki-components/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,5 @@ tracing = { workspace = true }
url = { workspace = true }
async-walkdir = "1.0.0"
pyo3 = { version = "0.21.2", features = ["anyhow"] }
tracing-test = "0.2.4"

6 changes: 2 additions & 4 deletions lib/saluki-components/src/sources/checks/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,21 +83,19 @@ impl CheckRequest {
fn to_runnable_request(&self) -> Result<RunnableCheckRequest, Error> {
Ok(RunnableCheckRequest {
check_request: self.clone(),
module_name: self.module_name.clone(),
check_source_code: None,
})
}
}

struct RunnableCheckRequest {
check_request: CheckRequest,
module_name: String,
check_source_code: Option<PathBuf>,
check_source_code: Option<String>,
}

impl Display for RunnableCheckRequest {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "Request: {} CheckSource: {}", self.check_request, self.module_name)
write!(f, "Request: {}", self.check_request)
}
}

Expand Down
Loading

0 comments on commit 66984d7

Please sign in to comment.