@@ -39,13 +39,13 @@ func NewTestIdentifier(reg *registry.Registry, componentIDs map[string]int64) *T
39
39
}
40
40
}
41
41
42
- func (t * TestIdentifier ) Identify (test v1.TestInfo ) (* v1.TestOwnership , error ) {
42
+ func (t * TestIdentifier ) Identify (test * v1.TestInfo ) (* v1.TestOwnership , error ) {
43
43
var ownerships []* v1.TestOwnership
44
44
45
45
log .WithFields (testInfoLogFields (test )).Debugf ("attempting to identify test using %d components" , len (t .reg .Components ))
46
46
for name , component := range t .reg .Components {
47
47
log .WithFields (testInfoLogFields (test )).Tracef ("checking component %q" , name )
48
- ownership , err := component .IdentifyTest (& test )
48
+ ownership , err := component .IdentifyTest (test )
49
49
if err != nil {
50
50
log .WithError (err ).Errorf ("component %q returned an error" , name )
51
51
return nil , err
@@ -74,19 +74,19 @@ func (t *TestIdentifier) Identify(test v1.TestInfo) (*v1.TestOwnership, error) {
74
74
return highestPriority , nil
75
75
}
76
76
77
- func (t * TestIdentifier ) setDefaults (testInfo v1.TestInfo , testOwnership * v1.TestOwnership , c v1.Component ) * v1.TestOwnership {
77
+ func (t * TestIdentifier ) setDefaults (testInfo * v1.TestInfo , testOwnership * v1.TestOwnership , c v1.Component ) * v1.TestOwnership {
78
78
// Kubernetes renames represent a global rename of tests that can belong to any (or no) components
79
79
// They were renamed when openshift/kubernetes ceased the annotation of tests
80
80
if newName , ok := KubernetesRenames [testInfo .Name ]; ok {
81
- testInfo = v1.TestInfo {
81
+ testInfo = & v1.TestInfo {
82
82
Name : newName ,
83
83
Suite : testInfo .Suite ,
84
84
Variants : testInfo .Variants ,
85
85
}
86
86
}
87
87
if testOwnership .ID == "" {
88
88
if c != nil {
89
- testOwnership .ID = util .StableID (testInfo , c .StableID (& testInfo ))
89
+ testOwnership .ID = util .StableID (testInfo , c .StableID (testInfo ))
90
90
} else {
91
91
testOwnership .ID = util .StableID (testInfo , testInfo .Name )
92
92
}
@@ -113,7 +113,7 @@ func (t *TestIdentifier) setDefaults(testInfo v1.TestInfo, testOwnership *v1.Tes
113
113
}
114
114
115
115
if len (testOwnership .Capabilities ) == 0 {
116
- capabilities := util .DefaultCapabilities (& testInfo )
116
+ capabilities := util .DefaultCapabilities (testInfo )
117
117
if len (capabilities ) == 0 {
118
118
capabilities = []string {DefaultCapability }
119
119
}
@@ -127,7 +127,7 @@ func (t *TestIdentifier) setDefaults(testInfo v1.TestInfo, testOwnership *v1.Tes
127
127
return testOwnership
128
128
}
129
129
130
- func testInfoLogFields (testInfo v1.TestInfo ) log.Fields {
130
+ func testInfoLogFields (testInfo * v1.TestInfo ) log.Fields {
131
131
return log.Fields {
132
132
"name" : testInfo .Name ,
133
133
"suite" : testInfo .Suite ,
0 commit comments