@@ -394,10 +394,10 @@ func TestStyleParam(t *testing.T) {
394394
395395 // ------------------------ spaceDelimited Style --------------------------
396396
397- result , err = StyleParamWithLocation ("spaceDelimited" , false , "id" , ParamLocationQuery , primitive )
397+ _ , err = StyleParamWithLocation ("spaceDelimited" , false , "id" , ParamLocationQuery , primitive )
398398 assert .Error (t , err )
399399
400- result , err = StyleParamWithLocation ("spaceDelimited" , true , "id" , ParamLocationQuery , primitive )
400+ _ , err = StyleParamWithLocation ("spaceDelimited" , true , "id" , ParamLocationQuery , primitive )
401401 assert .Error (t , err )
402402
403403 result , err = StyleParamWithLocation ("spaceDelimited" , false , "id" , ParamLocationQuery , array )
@@ -408,60 +408,60 @@ func TestStyleParam(t *testing.T) {
408408 assert .NoError (t , err )
409409 assert .EqualValues (t , "id=3&id=4&id=5" , result )
410410
411- result , err = StyleParamWithLocation ("spaceDelimited" , false , "id" , ParamLocationQuery , object )
411+ _ , err = StyleParamWithLocation ("spaceDelimited" , false , "id" , ParamLocationQuery , object )
412412 assert .Error (t , err )
413413
414- result , err = StyleParamWithLocation ("spaceDelimited" , true , "id" , ParamLocationQuery , object )
414+ _ , err = StyleParamWithLocation ("spaceDelimited" , true , "id" , ParamLocationQuery , object )
415415 assert .Error (t , err )
416416
417- result , err = StyleParamWithLocation ("spaceDelimited" , false , "id" , ParamLocationQuery , dict )
417+ _ , err = StyleParamWithLocation ("spaceDelimited" , false , "id" , ParamLocationQuery , dict )
418418 assert .Error (t , err )
419419
420- result , err = StyleParamWithLocation ("spaceDelimited" , true , "id" , ParamLocationQuery , dict )
420+ _ , err = StyleParamWithLocation ("spaceDelimited" , true , "id" , ParamLocationQuery , dict )
421421 assert .Error (t , err )
422422
423- result , err = StyleParamWithLocation ("spaceDelimited" , false , "id" , ParamLocationQuery , timestamp )
423+ _ , err = StyleParamWithLocation ("spaceDelimited" , false , "id" , ParamLocationQuery , timestamp )
424424 assert .Error (t , err )
425425
426- result , err = StyleParamWithLocation ("spaceDelimited" , true , "id" , ParamLocationQuery , timestamp )
426+ _ , err = StyleParamWithLocation ("spaceDelimited" , true , "id" , ParamLocationQuery , timestamp )
427427 assert .Error (t , err )
428428
429- result , err = StyleParamWithLocation ("spaceDelimited" , false , "id" , ParamLocationQuery , & timestamp )
429+ _ , err = StyleParamWithLocation ("spaceDelimited" , false , "id" , ParamLocationQuery , & timestamp )
430430 assert .Error (t , err )
431431
432- result , err = StyleParamWithLocation ("spaceDelimited" , true , "id" , ParamLocationQuery , & timestamp )
432+ _ , err = StyleParamWithLocation ("spaceDelimited" , true , "id" , ParamLocationQuery , & timestamp )
433433 assert .Error (t , err )
434434
435- result , err = StyleParamWithLocation ("spaceDelimited" , false , "id" , ParamLocationQuery , date )
435+ _ , err = StyleParamWithLocation ("spaceDelimited" , false , "id" , ParamLocationQuery , date )
436436 assert .Error (t , err )
437437
438- result , err = StyleParamWithLocation ("spaceDelimited" , true , "id" , ParamLocationQuery , date )
438+ _ , err = StyleParamWithLocation ("spaceDelimited" , true , "id" , ParamLocationQuery , date )
439439 assert .Error (t , err )
440440
441- result , err = StyleParamWithLocation ("spaceDelimited" , false , "id" , ParamLocationQuery , & date )
441+ _ , err = StyleParamWithLocation ("spaceDelimited" , false , "id" , ParamLocationQuery , & date )
442442 assert .Error (t , err )
443443
444- result , err = StyleParamWithLocation ("spaceDelimited" , true , "id" , ParamLocationQuery , & date )
444+ _ , err = StyleParamWithLocation ("spaceDelimited" , true , "id" , ParamLocationQuery , & date )
445445 assert .Error (t , err )
446446
447- result , err = StyleParamWithLocation ("spaceDelimited" , false , "id" , ParamLocationQuery , aUUID )
447+ _ , err = StyleParamWithLocation ("spaceDelimited" , false , "id" , ParamLocationQuery , aUUID )
448448 assert .Error (t , err )
449449
450- result , err = StyleParamWithLocation ("spaceDelimited" , true , "id" , ParamLocationQuery , aUUID )
450+ _ , err = StyleParamWithLocation ("spaceDelimited" , true , "id" , ParamLocationQuery , aUUID )
451451 assert .Error (t , err )
452452
453- result , err = StyleParamWithLocation ("spaceDelimited" , false , "id" , ParamLocationQuery , & aUUID )
453+ _ , err = StyleParamWithLocation ("spaceDelimited" , false , "id" , ParamLocationQuery , & aUUID )
454454 assert .Error (t , err )
455455
456- result , err = StyleParamWithLocation ("spaceDelimited" , true , "id" , ParamLocationQuery , & aUUID )
456+ _ , err = StyleParamWithLocation ("spaceDelimited" , true , "id" , ParamLocationQuery , & aUUID )
457457 assert .Error (t , err )
458458
459459 // ------------------------- pipeDelimited Style --------------------------
460460
461- result , err = StyleParamWithLocation ("pipeDelimited" , false , "id" , ParamLocationQuery , primitive )
461+ _ , err = StyleParamWithLocation ("pipeDelimited" , false , "id" , ParamLocationQuery , primitive )
462462 assert .Error (t , err )
463463
464- result , err = StyleParamWithLocation ("pipeDelimited" , true , "id" , ParamLocationQuery , primitive )
464+ _ , err = StyleParamWithLocation ("pipeDelimited" , true , "id" , ParamLocationQuery , primitive )
465465 assert .Error (t , err )
466466
467467 result , err = StyleParamWithLocation ("pipeDelimited" , false , "id" , ParamLocationQuery , array )
@@ -472,69 +472,69 @@ func TestStyleParam(t *testing.T) {
472472 assert .NoError (t , err )
473473 assert .EqualValues (t , "id=3&id=4&id=5" , result )
474474
475- result , err = StyleParamWithLocation ("pipeDelimited" , false , "id" , ParamLocationQuery , object )
475+ _ , err = StyleParamWithLocation ("pipeDelimited" , false , "id" , ParamLocationQuery , object )
476476 assert .Error (t , err )
477477
478- result , err = StyleParamWithLocation ("pipeDelimited" , true , "id" , ParamLocationQuery , object )
478+ _ , err = StyleParamWithLocation ("pipeDelimited" , true , "id" , ParamLocationQuery , object )
479479 assert .Error (t , err )
480480
481- result , err = StyleParamWithLocation ("pipeDelimited" , false , "id" , ParamLocationQuery , dict )
481+ _ , err = StyleParamWithLocation ("pipeDelimited" , false , "id" , ParamLocationQuery , dict )
482482 assert .Error (t , err )
483483
484- result , err = StyleParamWithLocation ("pipeDelimited" , true , "id" , ParamLocationQuery , dict )
484+ _ , err = StyleParamWithLocation ("pipeDelimited" , true , "id" , ParamLocationQuery , dict )
485485 assert .Error (t , err )
486486
487- result , err = StyleParamWithLocation ("pipeDelimited" , false , "id" , ParamLocationQuery , timestamp )
487+ _ , err = StyleParamWithLocation ("pipeDelimited" , false , "id" , ParamLocationQuery , timestamp )
488488 assert .Error (t , err )
489489
490- result , err = StyleParamWithLocation ("pipeDelimited" , true , "id" , ParamLocationQuery , timestamp )
490+ _ , err = StyleParamWithLocation ("pipeDelimited" , true , "id" , ParamLocationQuery , timestamp )
491491 assert .Error (t , err )
492492
493- result , err = StyleParamWithLocation ("pipeDelimited" , false , "id" , ParamLocationQuery , & timestamp )
493+ _ , err = StyleParamWithLocation ("pipeDelimited" , false , "id" , ParamLocationQuery , & timestamp )
494494 assert .Error (t , err )
495495
496- result , err = StyleParamWithLocation ("pipeDelimited" , true , "id" , ParamLocationQuery , & timestamp )
496+ _ , err = StyleParamWithLocation ("pipeDelimited" , true , "id" , ParamLocationQuery , & timestamp )
497497 assert .Error (t , err )
498498
499- result , err = StyleParamWithLocation ("pipeDelimited" , false , "id" , ParamLocationQuery , date )
499+ _ , err = StyleParamWithLocation ("pipeDelimited" , false , "id" , ParamLocationQuery , date )
500500 assert .Error (t , err )
501501
502- result , err = StyleParamWithLocation ("pipeDelimited" , true , "id" , ParamLocationQuery , date )
502+ _ , err = StyleParamWithLocation ("pipeDelimited" , true , "id" , ParamLocationQuery , date )
503503 assert .Error (t , err )
504504
505- result , err = StyleParamWithLocation ("pipeDelimited" , false , "id" , ParamLocationQuery , & date )
505+ _ , err = StyleParamWithLocation ("pipeDelimited" , false , "id" , ParamLocationQuery , & date )
506506 assert .Error (t , err )
507507
508- result , err = StyleParamWithLocation ("pipeDelimited" , true , "id" , ParamLocationQuery , & date )
508+ _ , err = StyleParamWithLocation ("pipeDelimited" , true , "id" , ParamLocationQuery , & date )
509509 assert .Error (t , err )
510510
511- result , err = StyleParamWithLocation ("pipeDelimited" , false , "id" , ParamLocationQuery , aUUID )
511+ _ , err = StyleParamWithLocation ("pipeDelimited" , false , "id" , ParamLocationQuery , aUUID )
512512 assert .Error (t , err )
513513
514- result , err = StyleParamWithLocation ("pipeDelimited" , true , "id" , ParamLocationQuery , aUUID )
514+ _ , err = StyleParamWithLocation ("pipeDelimited" , true , "id" , ParamLocationQuery , aUUID )
515515 assert .Error (t , err )
516516
517- result , err = StyleParamWithLocation ("pipeDelimited" , false , "id" , ParamLocationQuery , & aUUID )
517+ _ , err = StyleParamWithLocation ("pipeDelimited" , false , "id" , ParamLocationQuery , & aUUID )
518518 assert .Error (t , err )
519519
520- result , err = StyleParamWithLocation ("pipeDelimited" , true , "id" , ParamLocationQuery , & aUUID )
520+ _ , err = StyleParamWithLocation ("pipeDelimited" , true , "id" , ParamLocationQuery , & aUUID )
521521 assert .Error (t , err )
522522
523523 // --------------------------- deepObject Style ---------------------------
524- result , err = StyleParamWithLocation ("deepObject" , false , "id" , ParamLocationQuery , primitive )
524+ _ , err = StyleParamWithLocation ("deepObject" , false , "id" , ParamLocationQuery , primitive )
525525 assert .Error (t , err )
526526
527- result , err = StyleParamWithLocation ("deepObject" , true , "id" , ParamLocationQuery , primitive )
527+ _ , err = StyleParamWithLocation ("deepObject" , true , "id" , ParamLocationQuery , primitive )
528528 assert .Error (t , err )
529529
530- result , err = StyleParamWithLocation ("deepObject" , false , "id" , ParamLocationQuery , array )
530+ _ , err = StyleParamWithLocation ("deepObject" , false , "id" , ParamLocationQuery , array )
531531 assert .Error (t , err )
532532
533533 result , err = StyleParamWithLocation ("deepObject" , true , "id" , ParamLocationQuery , array )
534534 assert .NoError (t , err )
535535 assert .EqualValues (t , "id[0]=3&id[1]=4&id[2]=5" , result )
536536
537- result , err = StyleParamWithLocation ("deepObject" , false , "id" , ParamLocationQuery , object )
537+ _ , err = StyleParamWithLocation ("deepObject" , false , "id" , ParamLocationQuery , object )
538538 assert .Error (t , err )
539539
540540 result , err = StyleParamWithLocation ("deepObject" , true , "id" , ParamLocationQuery , object )
@@ -545,40 +545,40 @@ func TestStyleParam(t *testing.T) {
545545 assert .NoError (t , err )
546546 assert .EqualValues (t , "id[firstName]=Alex&id[role]=admin" , result )
547547
548- result , err = StyleParamWithLocation ("deepObject" , false , "id" , ParamLocationQuery , timestamp )
548+ _ , err = StyleParamWithLocation ("deepObject" , false , "id" , ParamLocationQuery , timestamp )
549549 assert .Error (t , err )
550550
551- result , err = StyleParamWithLocation ("deepObject" , true , "id" , ParamLocationQuery , timestamp )
551+ _ , err = StyleParamWithLocation ("deepObject" , true , "id" , ParamLocationQuery , timestamp )
552552 assert .Error (t , err )
553553
554- result , err = StyleParamWithLocation ("deepObject" , false , "id" , ParamLocationQuery , & timestamp )
554+ _ , err = StyleParamWithLocation ("deepObject" , false , "id" , ParamLocationQuery , & timestamp )
555555 assert .Error (t , err )
556556
557- result , err = StyleParamWithLocation ("deepObject" , true , "id" , ParamLocationQuery , & timestamp )
557+ _ , err = StyleParamWithLocation ("deepObject" , true , "id" , ParamLocationQuery , & timestamp )
558558 assert .Error (t , err )
559559
560- result , err = StyleParamWithLocation ("deepObject" , false , "id" , ParamLocationQuery , date )
560+ _ , err = StyleParamWithLocation ("deepObject" , false , "id" , ParamLocationQuery , date )
561561 assert .Error (t , err )
562562
563- result , err = StyleParamWithLocation ("deepObject" , true , "id" , ParamLocationQuery , date )
563+ _ , err = StyleParamWithLocation ("deepObject" , true , "id" , ParamLocationQuery , date )
564564 assert .Error (t , err )
565565
566- result , err = StyleParamWithLocation ("deepObject" , false , "id" , ParamLocationQuery , & date )
566+ _ , err = StyleParamWithLocation ("deepObject" , false , "id" , ParamLocationQuery , & date )
567567 assert .Error (t , err )
568568
569- result , err = StyleParamWithLocation ("deepObject" , true , "id" , ParamLocationQuery , & date )
569+ _ , err = StyleParamWithLocation ("deepObject" , true , "id" , ParamLocationQuery , & date )
570570 assert .Error (t , err )
571571
572- result , err = StyleParamWithLocation ("deepObject" , false , "id" , ParamLocationQuery , aUUID )
572+ _ , err = StyleParamWithLocation ("deepObject" , false , "id" , ParamLocationQuery , aUUID )
573573 assert .Error (t , err )
574574
575- result , err = StyleParamWithLocation ("deepObject" , true , "id" , ParamLocationQuery , aUUID )
575+ _ , err = StyleParamWithLocation ("deepObject" , true , "id" , ParamLocationQuery , aUUID )
576576 assert .Error (t , err )
577577
578- result , err = StyleParamWithLocation ("deepObject" , false , "id" , ParamLocationQuery , & aUUID )
578+ _ , err = StyleParamWithLocation ("deepObject" , false , "id" , ParamLocationQuery , & aUUID )
579579 assert .Error (t , err )
580580
581- result , err = StyleParamWithLocation ("deepObject" , true , "id" , ParamLocationQuery , & aUUID )
581+ _ , err = StyleParamWithLocation ("deepObject" , true , "id" , ParamLocationQuery , & aUUID )
582582 assert .Error (t , err )
583583
584584 // Misc tests
0 commit comments