@@ -67,7 +67,7 @@ func TestPrefixPlugin(t *testing.T) {
6767 schedulingResult := & types.SchedulingResult {
6868 PrimaryProfileName : "default" ,
6969 ProfileResults : map [string ]* types.ProfileRunResult {
70- "default" : & types. ProfileRunResult {TargetPods : []types.Pod {pod1 }},
70+ "default" : {TargetPods : []types.Pod {pod1 }},
7171 },
7272 }
7373 plugin .PreRequest (context .Background (), req1 , schedulingResult , 0 )
@@ -94,7 +94,7 @@ func TestPrefixPlugin(t *testing.T) {
9494 schedulingResult = & types.SchedulingResult {
9595 PrimaryProfileName : "default" ,
9696 ProfileResults : map [string ]* types.ProfileRunResult {
97- "default" : & types. ProfileRunResult {TargetPods : []types.Pod {pod2 }},
97+ "default" : {TargetPods : []types.Pod {pod2 }},
9898 },
9999 }
100100 plugin .PreRequest (context .Background (), req2 , schedulingResult , 0 )
@@ -119,7 +119,7 @@ func TestPrefixPlugin(t *testing.T) {
119119 schedulingResult = & types.SchedulingResult {
120120 PrimaryProfileName : "default" ,
121121 ProfileResults : map [string ]* types.ProfileRunResult {
122- "default" : & types. ProfileRunResult {TargetPods : []types.Pod {pod1 }},
122+ "default" : {TargetPods : []types.Pod {pod1 }},
123123 },
124124 }
125125 plugin .PreRequest (context .Background (), req3 , schedulingResult , 0 )
@@ -144,7 +144,7 @@ func TestPrefixPlugin(t *testing.T) {
144144 schedulingResult = & types.SchedulingResult {
145145 PrimaryProfileName : "default" ,
146146 ProfileResults : map [string ]* types.ProfileRunResult {
147- "default" : & types. ProfileRunResult {TargetPods : []types.Pod {pod1 }},
147+ "default" : {TargetPods : []types.Pod {pod1 }},
148148 },
149149 }
150150 plugin .PreRequest (context .Background (), req4 , schedulingResult , 0 )
@@ -169,7 +169,7 @@ func TestPrefixPlugin(t *testing.T) {
169169 schedulingResult = & types.SchedulingResult {
170170 PrimaryProfileName : "default" ,
171171 ProfileResults : map [string ]* types.ProfileRunResult {
172- "default" : & types. ProfileRunResult {TargetPods : []types.Pod {pod1 }},
172+ "default" : {TargetPods : []types.Pod {pod1 }},
173173 },
174174 }
175175 plugin .PreRequest (context .Background (), req5 , schedulingResult , 0 )
@@ -216,7 +216,7 @@ func BenchmarkPrefixPluginStress(b *testing.B) {
216216 schedulingResult := & types.SchedulingResult {
217217 PrimaryProfileName : "default" ,
218218 ProfileResults : map [string ]* types.ProfileRunResult {
219- "default" : & types. ProfileRunResult {TargetPods : []types.Pod {pod }},
219+ "default" : {TargetPods : []types.Pod {pod }},
220220 },
221221 }
222222 plugin .PreRequest (context .Background (), req , schedulingResult , 0 )
0 commit comments