Skip to content

Commit

Permalink
use got / want in test
Browse files Browse the repository at this point in the history
Signed-off-by: laurentsimon <[email protected]>
  • Loading branch information
laurentsimon committed Sep 12, 2023
1 parent 50e1c89 commit 25d7241
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions checker/check_result.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,7 @@ func CreateRuntimeErrorResult(name string, e error) CheckResult {
}

// LogFindings logs the list of findings.
func LogFindings(findings []finding.Finding, dl DetailLogger,
) {
func LogFindings(findings []finding.Finding, dl DetailLogger) {
for i := range findings {
f := &findings[i]
switch f.Outcome {
Expand Down
2 changes: 1 addition & 1 deletion checks/evaluation/dependency_update_tool_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ func TestDependencyUpdateTool(t *testing.T) {
dl := scut.TestDetailLogger{}
got := DependencyUpdateTool(tt.name, tt.findings, &dl)
if !scut.ValidateTestReturn(t, tt.name, &tt.result, &got, &dl) {
t.Fatalf(tt.name)
t.Errorf("got %v, expected %v", got, tt.result)
}
})
}
Expand Down

0 comments on commit 25d7241

Please sign in to comment.