Skip to content

Commit 4b80c0f

Browse files
committed
tests
1 parent d4bac10 commit 4b80c0f

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

checks/cii_best_practices_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,21 +66,21 @@ func TestCIIBestPractices(t *testing.T) {
6666
name: "InProgressBadge",
6767
badgeLevel: clients.InProgress,
6868
expected: scut.TestReturn{
69-
Score: inProgressScore,
69+
Score: 2,
7070
},
7171
},
7272
{
7373
name: "PassingBadge",
7474
badgeLevel: clients.Passing,
7575
expected: scut.TestReturn{
76-
Score: passingScore,
76+
Score: 5,
7777
},
7878
},
7979
{
8080
name: "SilverBadge",
8181
badgeLevel: clients.Silver,
8282
expected: scut.TestReturn{
83-
Score: silverScore,
83+
Score: 7,
8484
},
8585
},
8686
{

checks/evaluation/cii_best_practices.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import (
2121
sce "github.com/ossf/scorecard/v4/errors"
2222
)
2323

24+
// Note: exported for unit tests.
2425
const (
2526
silverScore = 7
2627
// Note: if this value is changed, please update the action's threshold score

0 commit comments

Comments
 (0)