@@ -75,14 +75,14 @@ func TestModifiedPackagesFromDiffs(t *testing.T) {
75
75
func TestNotRunTests (t * testing.T ) {
76
76
cases := map [string ]struct {
77
77
gaDiff , betaDiff string
78
- result * vcr.Result
78
+ result vcr.Result
79
79
wantNotRunBeta []string
80
80
wantNotRunGa []string
81
81
}{
82
82
"no diff" : {
83
83
gaDiff : "" ,
84
84
betaDiff : "" ,
85
- result : & vcr.Result {
85
+ result : vcr.Result {
86
86
PassedTests : []string {"TestAccOne" },
87
87
FailedTests : []string {"TestAccTwo" },
88
88
},
@@ -92,7 +92,7 @@ func TestNotRunTests(t *testing.T) {
92
92
"no added tests" : {
93
93
gaDiff : "+// some change" ,
94
94
betaDiff : "+// some change" ,
95
- result : & vcr.Result {
95
+ result : vcr.Result {
96
96
PassedTests : []string {"TestAccOne" },
97
97
FailedTests : []string {"TestAccTwo" },
98
98
},
@@ -102,7 +102,7 @@ func TestNotRunTests(t *testing.T) {
102
102
"test added and passed" : {
103
103
gaDiff : "+func TestAccTwo(t *testing.T) {" ,
104
104
betaDiff : "+func TestAccTwo(t *testing.T) {" ,
105
- result : & vcr.Result {
105
+ result : vcr.Result {
106
106
PassedTests : []string {"TestAccTwo" },
107
107
FailedTests : []string {},
108
108
},
@@ -114,7 +114,7 @@ func TestNotRunTests(t *testing.T) {
114
114
+func TestAccThree(t *testing.T) {` ,
115
115
betaDiff : `+func TestAccTwo(t *testing.T) {
116
116
+func TestAccThree(t *testing.T) {` ,
117
- result : & vcr.Result {
117
+ result : vcr.Result {
118
118
PassedTests : []string {"TestAccTwo" , "TestAccThree" },
119
119
FailedTests : []string {},
120
120
},
@@ -124,7 +124,7 @@ func TestNotRunTests(t *testing.T) {
124
124
"test added and failed" : {
125
125
gaDiff : "+func TestAccTwo(t *testing.T) {" ,
126
126
betaDiff : "+func TestAccTwo(t *testing.T) {" ,
127
- result : & vcr.Result {
127
+ result : vcr.Result {
128
128
PassedTests : []string {},
129
129
FailedTests : []string {"TestAccTwo" },
130
130
},
@@ -134,7 +134,7 @@ func TestNotRunTests(t *testing.T) {
134
134
"tests removed and run" : {
135
135
gaDiff : "-func TestAccOne(t *testing.T) {" ,
136
136
betaDiff : "-func TestAccTwo(t *testing.T) {" ,
137
- result : & vcr.Result {
137
+ result : vcr.Result {
138
138
PassedTests : []string {"TestAccOne" },
139
139
FailedTests : []string {"TestAccTwo" },
140
140
},
@@ -144,7 +144,7 @@ func TestNotRunTests(t *testing.T) {
144
144
"test added and not run" : {
145
145
gaDiff : "+func TestAccThree(t *testing.T) {" ,
146
146
betaDiff : "+func TestAccFour(t *testing.T) {" ,
147
- result : & vcr.Result {
147
+ result : vcr.Result {
148
148
PassedTests : []string {"TestAccOne" },
149
149
FailedTests : []string {"TestAccTwo" },
150
150
},
@@ -156,7 +156,7 @@ func TestNotRunTests(t *testing.T) {
156
156
+func TestAccThree(t *testing.T) {` ,
157
157
betaDiff : `+func TestAccTwo(t *testing.T) {
158
158
+func TestAccThree(t *testing.T) {` ,
159
- result : & vcr.Result {
159
+ result : vcr.Result {
160
160
PassedTests : []string {"TestAccOne" },
161
161
FailedTests : []string {"TestAccFour" },
162
162
},
@@ -166,7 +166,7 @@ func TestNotRunTests(t *testing.T) {
166
166
"tests removed and not run" : {
167
167
gaDiff : "-func TestAccThree(t *testing.T) {" ,
168
168
betaDiff : "-func TestAccFour(t *testing.T) {" ,
169
- result : & vcr.Result {
169
+ result : vcr.Result {
170
170
PassedTests : []string {"TestAccOne" },
171
171
FailedTests : []string {"TestAccTwo" },
172
172
},
@@ -176,7 +176,7 @@ func TestNotRunTests(t *testing.T) {
176
176
"tests added but commented out" : {
177
177
gaDiff : "+//func TestAccThree(t *testing.T) {" ,
178
178
betaDiff : "+//func TestAccFour(t *testing.T) {" ,
179
- result : & vcr.Result {
179
+ result : vcr.Result {
180
180
PassedTests : []string {"TestAccOne" },
181
181
FailedTests : []string {"TestAccTwo" },
182
182
},
@@ -189,7 +189,7 @@ func TestNotRunTests(t *testing.T) {
189
189
+func TestAccCloudRunService_cloudRunServiceMulticontainerExample(t *testing.T) {` ,
190
190
betaDiff : `diff --git a/google-beta/services/alloydb/resource_alloydb_backup_generated_test.go b/google-beta/services/alloydb/resource_alloydb_backup_generated_test.go
191
191
+func TestAccAlloydbBackup_alloydbBackupFullTestNewExample(t *testing.T) {` ,
192
- result : & vcr.Result {
192
+ result : vcr.Result {
193
193
PassedTests : []string {},
194
194
FailedTests : []string {},
195
195
},
@@ -199,7 +199,7 @@ func TestNotRunTests(t *testing.T) {
199
199
"always count GA-only added tests" : {
200
200
gaDiff : "+func TestAccOne(t *testing.T) {" ,
201
201
betaDiff : "" ,
202
- result : & vcr.Result {
202
+ result : vcr.Result {
203
203
PassedTests : []string {"TestAccOne" },
204
204
FailedTests : []string {"TestAccTwo" },
205
205
},
@@ -226,7 +226,7 @@ func TestAnalyticsComment(t *testing.T) {
226
226
{
227
227
name : "run full vcr is false and no affected services" ,
228
228
data : analytics {
229
- ReplayingResult : & vcr.Result {
229
+ ReplayingResult : vcr.Result {
230
230
PassedTests : []string {"a" , "b" , "c" },
231
231
SkippedTests : []string {"d" , "e" },
232
232
FailedTests : []string {"f" },
@@ -257,7 +257,7 @@ func TestAnalyticsComment(t *testing.T) {
257
257
{
258
258
name : "run full vcr is false and has affected services" ,
259
259
data : analytics {
260
- ReplayingResult : & vcr.Result {
260
+ ReplayingResult : vcr.Result {
261
261
PassedTests : []string {"a" , "b" , "c" },
262
262
SkippedTests : []string {"d" , "e" },
263
263
FailedTests : []string {"f" },
@@ -292,7 +292,7 @@ func TestAnalyticsComment(t *testing.T) {
292
292
{
293
293
name : "run full vcr is true" ,
294
294
data : analytics {
295
- ReplayingResult : & vcr.Result {
295
+ ReplayingResult : vcr.Result {
296
296
PassedTests : []string {"a" , "b" , "c" },
297
297
SkippedTests : []string {"d" , "e" },
298
298
FailedTests : []string {"f" },
@@ -427,7 +427,7 @@ func TestWithReplayFailedTests(t *testing.T) {
427
427
{
428
428
name : "with failed tests" ,
429
429
data : withReplayFailedTests {
430
- ReplayingResult : & vcr.Result {
430
+ ReplayingResult : vcr.Result {
431
431
FailedTests : []string {"a" , "b" },
432
432
},
433
433
},
@@ -525,11 +525,11 @@ func TestRecordReplay(t *testing.T) {
525
525
{
526
526
name : "ReplayingAfterRecordingResult has failed tests" ,
527
527
data : recordReplay {
528
- RecordingResult : & vcr.Result {
528
+ RecordingResult : vcr.Result {
529
529
PassedTests : []string {"a" , "b" , "c" },
530
530
FailedTests : []string {"d" , "e" },
531
531
},
532
- ReplayingAfterRecordingResult : & vcr.Result {
532
+ ReplayingAfterRecordingResult : vcr.Result {
533
533
PassedTests : []string {"a" },
534
534
FailedTests : []string {"b" , "c" },
535
535
},
@@ -572,10 +572,10 @@ func TestRecordReplay(t *testing.T) {
572
572
{
573
573
name : "ReplayingAfterRecordingResult does not have failed tests" ,
574
574
data : recordReplay {
575
- RecordingResult : & vcr.Result {
575
+ RecordingResult : vcr.Result {
576
576
PassedTests : []string {"a" , "b" , "c" },
577
577
},
578
- ReplayingAfterRecordingResult : & vcr.Result {
578
+ ReplayingAfterRecordingResult : vcr.Result {
579
579
PassedTests : []string {"a" , "b" , "c" },
580
580
},
581
581
AllRecordingPassed : true ,
0 commit comments