@@ -367,15 +367,15 @@ func TestParsePortSpecs(t *testing.T) {
367367 t .Fatalf ("Error while processing ParsePortSpecs: %s" , err )
368368 }
369369
370- if _ , ok := portMap [Port ( "1234/tcp" ) ]; ! ok {
370+ if _ , ok := portMap ["1234/tcp" ]; ! ok {
371371 t .Fatal ("1234/tcp was not parsed properly" )
372372 }
373373
374- if _ , ok := portMap [Port ( "2345/udp" ) ]; ! ok {
374+ if _ , ok := portMap ["2345/udp" ]; ! ok {
375375 t .Fatal ("2345/udp was not parsed properly" )
376376 }
377377
378- if _ , ok := portMap [Port ( "3456/sctp" ) ]; ! ok {
378+ if _ , ok := portMap ["3456/sctp" ]; ! ok {
379379 t .Fatal ("3456/sctp was not parsed properly" )
380380 }
381381
@@ -398,15 +398,15 @@ func TestParsePortSpecs(t *testing.T) {
398398 t .Fatalf ("Error while processing ParsePortSpecs: %s" , err )
399399 }
400400
401- if _ , ok := portMap [Port ( "1234/tcp" ) ]; ! ok {
401+ if _ , ok := portMap ["1234/tcp" ]; ! ok {
402402 t .Fatal ("1234/tcp was not parsed properly" )
403403 }
404404
405- if _ , ok := portMap [Port ( "2345/udp" ) ]; ! ok {
405+ if _ , ok := portMap ["2345/udp" ]; ! ok {
406406 t .Fatal ("2345/udp was not parsed properly" )
407407 }
408408
409- if _ , ok := portMap [Port ( "3456/sctp" ) ]; ! ok {
409+ if _ , ok := portMap ["3456/sctp" ]; ! ok {
410410 t .Fatal ("3456/sctp was not parsed properly" )
411411 }
412412
@@ -431,15 +431,15 @@ func TestParsePortSpecs(t *testing.T) {
431431 t .Fatalf ("Error while processing ParsePortSpecs: %s" , err )
432432 }
433433
434- if _ , ok := portMap [Port ( "1234/tcp" ) ]; ! ok {
434+ if _ , ok := portMap ["1234/tcp" ]; ! ok {
435435 t .Fatal ("1234/tcp was not parsed properly" )
436436 }
437437
438- if _ , ok := portMap [Port ( "2345/udp" ) ]; ! ok {
438+ if _ , ok := portMap ["2345/udp" ]; ! ok {
439439 t .Fatal ("2345/udp was not parsed properly" )
440440 }
441441
442- if _ , ok := portMap [Port ( "3456/sctp" ) ]; ! ok {
442+ if _ , ok := portMap ["3456/sctp" ]; ! ok {
443443 t .Fatal ("3456/sctp was not parsed properly" )
444444 }
445445
@@ -478,15 +478,15 @@ func TestParsePortSpecsWithRange(t *testing.T) {
478478 t .Fatalf ("Error while processing ParsePortSpecs: %s" , err )
479479 }
480480
481- if _ , ok := portMap [Port ( "1235/tcp" ) ]; ! ok {
481+ if _ , ok := portMap ["1235/tcp" ]; ! ok {
482482 t .Fatal ("1234/tcp was not parsed properly" )
483483 }
484484
485- if _ , ok := portMap [Port ( "2346/udp" ) ]; ! ok {
485+ if _ , ok := portMap ["2346/udp" ]; ! ok {
486486 t .Fatal ("2345/udp was not parsed properly" )
487487 }
488488
489- if _ , ok := portMap [Port ( "3456/sctp" ) ]; ! ok {
489+ if _ , ok := portMap ["3456/sctp" ]; ! ok {
490490 t .Fatal ("3456/sctp was not parsed properly" )
491491 }
492492
@@ -509,15 +509,15 @@ func TestParsePortSpecsWithRange(t *testing.T) {
509509 t .Fatalf ("Error while processing ParsePortSpecs: %s" , err )
510510 }
511511
512- if _ , ok := portMap [Port ( "1235/tcp" ) ]; ! ok {
512+ if _ , ok := portMap ["1235/tcp" ]; ! ok {
513513 t .Fatal ("1234/tcp was not parsed properly" )
514514 }
515515
516- if _ , ok := portMap [Port ( "2346/udp" ) ]; ! ok {
516+ if _ , ok := portMap ["2346/udp" ]; ! ok {
517517 t .Fatal ("2345/udp was not parsed properly" )
518518 }
519519
520- if _ , ok := portMap [Port ( "3456/sctp" ) ]; ! ok {
520+ if _ , ok := portMap ["3456/sctp" ]; ! ok {
521521 t .Fatal ("3456/sctp was not parsed properly" )
522522 }
523523
@@ -541,15 +541,15 @@ func TestParsePortSpecsWithRange(t *testing.T) {
541541 t .Fatalf ("Error while processing ParsePortSpecs: %s" , err )
542542 }
543543
544- if _ , ok := portMap [Port ( "1235/tcp" ) ]; ! ok {
544+ if _ , ok := portMap ["1235/tcp" ]; ! ok {
545545 t .Fatal ("1234/tcp was not parsed properly" )
546546 }
547547
548- if _ , ok := portMap [Port ( "2346/udp" ) ]; ! ok {
548+ if _ , ok := portMap ["2346/udp" ]; ! ok {
549549 t .Fatal ("2345/udp was not parsed properly" )
550550 }
551551
552- if _ , ok := portMap [Port ( "3456/sctp" ) ]; ! ok {
552+ if _ , ok := portMap ["3456/sctp" ]; ! ok {
553553 t .Fatal ("3456/sctp was not parsed properly" )
554554 }
555555
0 commit comments