@@ -589,7 +589,7 @@ func (s) TestBothClientAndServerRPCEvents(t *testing.T) {
589
589
defer cleanup ()
590
590
591
591
ss := & stubserver.StubServer {
592
- UnaryCallF : func (ctx context.Context , in * testpb.SimpleRequest ) (* testpb.SimpleResponse , error ) {
592
+ UnaryCallF : func (_ context.Context , _ * testpb.SimpleRequest ) (* testpb.SimpleResponse , error ) {
593
593
return & testpb.SimpleResponse {}, nil
594
594
},
595
595
FullDuplexCallF : func (stream testgrpc.TestService_FullDuplexCallServer ) error {
@@ -650,7 +650,7 @@ func (s) TestClientRPCEventsTruncateHeaderAndMetadata(t *testing.T) {
650
650
newLoggingExporter = ne
651
651
}(newLoggingExporter )
652
652
653
- newLoggingExporter = func (ctx context.Context , config * config ) (loggingExporter , error ) {
653
+ newLoggingExporter = func (_ context.Context , _ * config ) (loggingExporter , error ) {
654
654
return fle , nil
655
655
}
656
656
@@ -673,7 +673,7 @@ func (s) TestClientRPCEventsTruncateHeaderAndMetadata(t *testing.T) {
673
673
defer cleanup ()
674
674
675
675
ss := & stubserver.StubServer {
676
- UnaryCallF : func (ctx context.Context , in * testpb.SimpleRequest ) (* testpb.SimpleResponse , error ) {
676
+ UnaryCallF : func (_ context.Context , _ * testpb.SimpleRequest ) (* testpb.SimpleResponse , error ) {
677
677
return & testpb.SimpleResponse {}, nil
678
678
},
679
679
}
@@ -787,7 +787,7 @@ func (s) TestPrecedenceOrderingInConfiguration(t *testing.T) {
787
787
newLoggingExporter = ne
788
788
}(newLoggingExporter )
789
789
790
- newLoggingExporter = func (ctx context.Context , config * config ) (loggingExporter , error ) {
790
+ newLoggingExporter = func (_ context.Context , _ * config ) (loggingExporter , error ) {
791
791
return fle , nil
792
792
}
793
793
@@ -822,10 +822,10 @@ func (s) TestPrecedenceOrderingInConfiguration(t *testing.T) {
822
822
defer cleanup ()
823
823
824
824
ss := & stubserver.StubServer {
825
- EmptyCallF : func (ctx context.Context , in * testpb.Empty ) (* testpb.Empty , error ) {
825
+ EmptyCallF : func (_ context.Context , _ * testpb.Empty ) (* testpb.Empty , error ) {
826
826
return & testpb.Empty {}, nil
827
827
},
828
- UnaryCallF : func (ctx context.Context , in * testpb.SimpleRequest ) (* testpb.SimpleResponse , error ) {
828
+ UnaryCallF : func (_ context.Context , _ * testpb.SimpleRequest ) (* testpb.SimpleResponse , error ) {
829
829
return & testpb.SimpleResponse {}, nil
830
830
},
831
831
FullDuplexCallF : func (stream testgrpc.TestService_FullDuplexCallServer ) error {
@@ -1125,7 +1125,7 @@ func (s) TestMetadataTruncationAccountsKey(t *testing.T) {
1125
1125
newLoggingExporter = ne
1126
1126
}(newLoggingExporter )
1127
1127
1128
- newLoggingExporter = func (ctx context.Context , config * config ) (loggingExporter , error ) {
1128
+ newLoggingExporter = func (_ context.Context , _ * config ) (loggingExporter , error ) {
1129
1129
return fle , nil
1130
1130
}
1131
1131
@@ -1149,7 +1149,7 @@ func (s) TestMetadataTruncationAccountsKey(t *testing.T) {
1149
1149
defer cleanup ()
1150
1150
1151
1151
ss := & stubserver.StubServer {
1152
- UnaryCallF : func (ctx context.Context , in * testpb.SimpleRequest ) (* testpb.SimpleResponse , error ) {
1152
+ UnaryCallF : func (_ context.Context , _ * testpb.SimpleRequest ) (* testpb.SimpleResponse , error ) {
1153
1153
return & testpb.SimpleResponse {}, nil
1154
1154
},
1155
1155
}
@@ -1240,6 +1240,7 @@ func (s) TestMetadataTruncationAccountsKey(t *testing.T) {
1240
1240
// TestMethodInConfiguration tests different method names with an expectation on
1241
1241
// whether they should error or not.
1242
1242
func (s ) TestMethodInConfiguration (t * testing.T ) {
1243
+
1243
1244
// To skip creating a stackdriver exporter.
1244
1245
fle := & fakeLoggingExporter {
1245
1246
t : t ,
@@ -1249,7 +1250,7 @@ func (s) TestMethodInConfiguration(t *testing.T) {
1249
1250
newLoggingExporter = ne
1250
1251
}(newLoggingExporter )
1251
1252
1252
- newLoggingExporter = func (ctx context.Context , config * config ) (loggingExporter , error ) {
1253
+ newLoggingExporter = func (_ context.Context , _ * config ) (loggingExporter , error ) {
1253
1254
return fle , nil
1254
1255
}
1255
1256
0 commit comments