File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
commands/operator-sdk/cmd/scorecard Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ import (
25
25
26
26
// Struct definitions
27
27
28
+ // ScorecardVars contains all necessary variables for running scorecard tests
28
29
type ScorecardVars struct {
29
30
client * client.Client
30
31
crObj * unstructured.Unstructured
@@ -34,13 +35,14 @@ type ScorecardVars struct {
34
35
retryInterval int
35
36
}
36
37
38
+ // Score contains the number of earned points and maximum number of points
37
39
type Score struct {
38
40
earnedPoints int
39
41
maximumPoints int
40
42
}
41
43
44
+ // Test defines a scorecard test
42
45
type Test struct {
43
- testType string
44
46
name string
45
47
description string
46
48
// by having an array of scores, we can more easily add support for multiple CR
@@ -50,6 +52,7 @@ type Test struct {
50
52
run func (* Test , ScorecardVars ) error
51
53
}
52
54
55
+ // TestSuite defines a suite of scorecard tests
53
56
type TestSuite struct {
54
57
name string
55
58
description string
You can’t perform that action at this time.
0 commit comments