From 4b91026d414dc24b82279676ca6a794d038d6c58 Mon Sep 17 00:00:00 2001 From: Adam Korczynski Date: Mon, 4 Dec 2023 13:47:44 +0000 Subject: [PATCH] use const scores in tests Signed-off-by: Adam Korczynski --- checks/evaluation/binary_artifacts_test.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/checks/evaluation/binary_artifacts_test.go b/checks/evaluation/binary_artifacts_test.go index 12bb01b3a1e..011eae6f812 100644 --- a/checks/evaluation/binary_artifacts_test.go +++ b/checks/evaluation/binary_artifacts_test.go @@ -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" @@ -51,7 +52,7 @@ func TestBinaryArtifacts(t *testing.T) { }, }, result: scut.TestReturn{ - Score: 10, + Score: checker.MaxResultScore, }, }, { @@ -122,7 +123,7 @@ func TestBinaryArtifacts(t *testing.T) { negativeFinding, }, result: scut.TestReturn{ - Score: 0, + Score: checker.MinResultScore, NumberOfWarn: 12, }, }, @@ -130,7 +131,7 @@ func TestBinaryArtifacts(t *testing.T) { name: "invalid findings", findings: []finding.Finding{}, result: scut.TestReturn{ - Score: -1, + Score: checker.InconclusiveResultScore, Error: sce.ErrScorecardInternal, }, },