File tree Expand file tree Collapse file tree 4 files changed +7
-7
lines changed
Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ func BenchmarkVersionParser(b *testing.B) {
7070 for _ , v := range list {
7171 res .raw = v
7272 res .bytes = []byte (v )
73- parse (res )
73+ _ = parse (res )
7474 }
7575 }
7676
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ func BenchmarkBinaryDecoding(b *testing.B) {
7474 data , _ := v .MarshalBinary ()
7575 var u Version
7676 for i := 0 ; i < b .N ; i ++ {
77- u .UnmarshalBinary (data )
77+ _ = u .UnmarshalBinary (data )
7878 }
7979}
8080
@@ -85,6 +85,6 @@ func BenchmarkBinaryDecodingRelaxed(b *testing.B) {
8585 data , _ := v .MarshalBinary ()
8686 var u RelaxedVersion
8787 for i := 0 ; i < b .N ; i ++ {
88- u .UnmarshalBinary (data )
88+ _ = u .UnmarshalBinary (data )
8989 }
9090}
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ func BenchmarkJSONDecoding(b *testing.B) {
6969 data , _ := json .Marshal (v )
7070 var u Version
7171 for i := 0 ; i < b .N ; i ++ {
72- json .Unmarshal (data , & u )
72+ _ = json .Unmarshal (data , & u )
7373 }
7474}
7575
@@ -79,6 +79,6 @@ func BenchmarkJSONDecodingRelaxed(b *testing.B) {
7979 data , _ := json .Marshal (v )
8080 var u RelaxedVersion
8181 for i := 0 ; i < b .N ; i ++ {
82- json .Unmarshal (data , & u )
82+ _ = json .Unmarshal (data , & u )
8383 }
8484}
Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ func BenchmarkYAMLDecoding(b *testing.B) {
8282 data , _ := yaml .Marshal (v )
8383 var u Version
8484 for i := 0 ; i < b .N ; i ++ {
85- yaml .Unmarshal (data , & u )
85+ _ = yaml .Unmarshal (data , & u )
8686 }
8787}
8888
@@ -92,6 +92,6 @@ func BenchmarkYAMLDecodingRelaxed(b *testing.B) {
9292 data , _ := yaml .Marshal (v )
9393 var u RelaxedVersion
9494 for i := 0 ; i < b .N ; i ++ {
95- yaml .Unmarshal (data , & u )
95+ _ = yaml .Unmarshal (data , & u )
9696 }
9797}
You can’t perform that action at this time.
0 commit comments