@@ -6,55 +6,55 @@ import "testing"
66
77func BenchmarkParse_VersURI_Simple (b * testing.B ) {
88 for b .Loop () {
9- Parse ("vers:npm/>=1.2.3" )
9+ _ , _ = Parse ("vers:npm/>=1.2.3" )
1010 }
1111}
1212
1313func BenchmarkParse_VersURI_Complex (b * testing.B ) {
1414 for b .Loop () {
15- Parse ("vers:npm/>=1.2.3|<2.0.0|!=1.5.0" )
15+ _ , _ = Parse ("vers:npm/>=1.2.3|<2.0.0|!=1.5.0" )
1616 }
1717}
1818
1919func BenchmarkParseNative_Npm_Caret (b * testing.B ) {
2020 for b .Loop () {
21- ParseNative ("^1.2.3" , "npm" )
21+ _ , _ = ParseNative ("^1.2.3" , "npm" )
2222 }
2323}
2424
2525func BenchmarkParseNative_Npm_Tilde (b * testing.B ) {
2626 for b .Loop () {
27- ParseNative ("~1.2.3" , "npm" )
27+ _ , _ = ParseNative ("~1.2.3" , "npm" )
2828 }
2929}
3030
3131func BenchmarkParseNative_Npm_Range (b * testing.B ) {
3232 for b .Loop () {
33- ParseNative (">=1.0.0 <2.0.0" , "npm" )
33+ _ , _ = ParseNative (">=1.0.0 <2.0.0" , "npm" )
3434 }
3535}
3636
3737func BenchmarkParseNative_Npm_Or (b * testing.B ) {
3838 for b .Loop () {
39- ParseNative ("^1.0.0 || ^2.0.0 || ^3.0.0" , "npm" )
39+ _ , _ = ParseNative ("^1.0.0 || ^2.0.0 || ^3.0.0" , "npm" )
4040 }
4141}
4242
4343func BenchmarkParseNative_Gem_Pessimistic (b * testing.B ) {
4444 for b .Loop () {
45- ParseNative ("~> 1.2.3" , "gem" )
45+ _ , _ = ParseNative ("~> 1.2.3" , "gem" )
4646 }
4747}
4848
4949func BenchmarkParseNative_Pypi_Compatible (b * testing.B ) {
5050 for b .Loop () {
51- ParseNative ("~=1.4.2" , "pypi" )
51+ _ , _ = ParseNative ("~=1.4.2" , "pypi" )
5252 }
5353}
5454
5555func BenchmarkParseNative_Maven_Bracket (b * testing.B ) {
5656 for b .Loop () {
57- ParseNative ("[1.0,2.0)" , "maven" )
57+ _ , _ = ParseNative ("[1.0,2.0)" , "maven" )
5858 }
5959}
6060
@@ -153,12 +153,12 @@ func BenchmarkIntersect_ManyRanges(b *testing.B) {
153153
154154func BenchmarkSatisfies_VersURI (b * testing.B ) {
155155 for b .Loop () {
156- Satisfies ("1.5.0" , "vers:npm/>=1.0.0|<2.0.0" , "" )
156+ _ , _ = Satisfies ("1.5.0" , "vers:npm/>=1.0.0|<2.0.0" , "" )
157157 }
158158}
159159
160160func BenchmarkSatisfies_Native (b * testing.B ) {
161161 for b .Loop () {
162- Satisfies ("1.5.0" , "^1.2.3" , "npm" )
162+ _ , _ = Satisfies ("1.5.0" , "^1.2.3" , "npm" )
163163 }
164164}
0 commit comments