Skip to content

Commit a26f1e1

Browse files
committed
commands/.../scorecard: move a function
1 parent e51dfa3 commit a26f1e1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

commands/operator-sdk/cmd/scorecard/test_definitions.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,6 @@ type TestSuite struct {
7373
Weights map[string]int
7474
}
7575

76-
func (ts *TestSuite) AddTest(t Test, weight int) {
77-
ts.Tests = append(ts.Tests, t)
78-
ts.Weights[t.GetName()] = weight
79-
}
80-
8176
// Test definitions
8277

8378
type CheckSpecTest struct {
@@ -223,6 +218,11 @@ func ResultsCumulative(results []TestResult) (earned, max int) {
223218
return earned, max
224219
}
225220

221+
func (ts *TestSuite) AddTest(t Test, weight int) {
222+
ts.Tests = append(ts.Tests, t)
223+
ts.Weights[t.GetName()] = weight
224+
}
225+
226226
func (ts *TestSuite) TotalScore() (score int) {
227227
floatScore := 0.0
228228
for _, result := range ts.TestResults {

0 commit comments

Comments
 (0)