Skip to content

Commit

Permalink
[skip ci] yolo
Browse files Browse the repository at this point in the history
  • Loading branch information
morgante committed Apr 2, 2024
1 parent 76e035c commit 4538571
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

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

10 changes: 8 additions & 2 deletions crates/cli/src/commands/patterns_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -253,10 +253,16 @@ enum FailureKind {

#[derive(Debug)]
struct TestReport {
/// Did all samples pass?
success: bool,
message: String,
/// If not, why did the test fail?
failure_kind: FailureKind,
report: ReadOnlyView<String, Vec<WrappedResult>>,
/// What is the overall "score" for the test.
/// This is a number between 0 and 100, where 100 is a perfect score.
/// If the pattern fails to compile, the score is 0.
/// Otherwise each sample is scored and averaged.
/// Each sample gets 50 points for matching correctly and 50 points for rewriting correctly.
score: usize,
}

#[derive(Debug)]
Expand Down

0 comments on commit 4538571

Please sign in to comment.