Skip to content

Commit

Permalink
use const scores in tests
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Korczynski <[email protected]>
  • Loading branch information
AdamKorcz committed Dec 4, 2023
1 parent 7cb09fc commit 4b91026
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions checks/evaluation/binary_artifacts_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ package evaluation
import (
"testing"

"github.com/ossf/scorecard/v4/checker"
sce "github.com/ossf/scorecard/v4/errors"
"github.com/ossf/scorecard/v4/finding"
scut "github.com/ossf/scorecard/v4/utests"
Expand Down Expand Up @@ -51,7 +52,7 @@ func TestBinaryArtifacts(t *testing.T) {
},
},
result: scut.TestReturn{
Score: 10,
Score: checker.MaxResultScore,
},
},
{
Expand Down Expand Up @@ -122,15 +123,15 @@ func TestBinaryArtifacts(t *testing.T) {
negativeFinding,
},
result: scut.TestReturn{
Score: 0,
Score: checker.MinResultScore,
NumberOfWarn: 12,
},
},
{
name: "invalid findings",
findings: []finding.Finding{},
result: scut.TestReturn{
Score: -1,
Score: checker.InconclusiveResultScore,
Error: sce.ErrScorecardInternal,
},
},
Expand Down

0 comments on commit 4b91026

Please sign in to comment.