@@ -41,7 +41,7 @@ func TestSomeIntPtrErr(t *testing.T) {
4141 t .Errorf ("SomeIntPtrErr failed. Expected=false, actual=true" )
4242 }
4343
44- r , _ = SomeIntPtrErr (isEvenIntPtrErr , []* int {})
44+ r , _ = SomeIntPtrErr (isEvenIntPtrErr , []* int {})
4545 if r {
4646 t .Errorf ("SomeIntPtr failed. Expected=false, actual=true" )
4747 }
@@ -83,7 +83,7 @@ func TestSomeInt64PtrErr(t *testing.T) {
8383 t .Errorf ("SomeInt64PtrErr failed. Expected=false, actual=true" )
8484 }
8585
86- r , _ = SomeInt64PtrErr (isEvenInt64PtrErr , []* int64 {})
86+ r , _ = SomeInt64PtrErr (isEvenInt64PtrErr , []* int64 {})
8787 if r {
8888 t .Errorf ("SomeInt64Ptr failed. Expected=false, actual=true" )
8989 }
@@ -125,7 +125,7 @@ func TestSomeInt32PtrErr(t *testing.T) {
125125 t .Errorf ("SomeInt32PtrErr failed. Expected=false, actual=true" )
126126 }
127127
128- r , _ = SomeInt32PtrErr (isEvenInt32PtrErr , []* int32 {})
128+ r , _ = SomeInt32PtrErr (isEvenInt32PtrErr , []* int32 {})
129129 if r {
130130 t .Errorf ("SomeInt32Ptr failed. Expected=false, actual=true" )
131131 }
@@ -167,7 +167,7 @@ func TestSomeInt16PtrErr(t *testing.T) {
167167 t .Errorf ("SomeInt16PtrErr failed. Expected=false, actual=true" )
168168 }
169169
170- r , _ = SomeInt16PtrErr (isEvenInt16PtrErr , []* int16 {})
170+ r , _ = SomeInt16PtrErr (isEvenInt16PtrErr , []* int16 {})
171171 if r {
172172 t .Errorf ("SomeInt16Ptr failed. Expected=false, actual=true" )
173173 }
@@ -209,7 +209,7 @@ func TestSomeInt8PtrErr(t *testing.T) {
209209 t .Errorf ("SomeInt8PtrErr failed. Expected=false, actual=true" )
210210 }
211211
212- r , _ = SomeInt8PtrErr (isEvenInt8PtrErr , []* int8 {})
212+ r , _ = SomeInt8PtrErr (isEvenInt8PtrErr , []* int8 {})
213213 if r {
214214 t .Errorf ("SomeInt8Ptr failed. Expected=false, actual=true" )
215215 }
@@ -251,7 +251,7 @@ func TestSomeUintPtrErr(t *testing.T) {
251251 t .Errorf ("SomeUintPtrErr failed. Expected=false, actual=true" )
252252 }
253253
254- r , _ = SomeUintPtrErr (isEvenUintPtrErr , []* uint {})
254+ r , _ = SomeUintPtrErr (isEvenUintPtrErr , []* uint {})
255255 if r {
256256 t .Errorf ("SomeUintPtr failed. Expected=false, actual=true" )
257257 }
@@ -293,7 +293,7 @@ func TestSomeUint64PtrErr(t *testing.T) {
293293 t .Errorf ("SomeUint64PtrErr failed. Expected=false, actual=true" )
294294 }
295295
296- r , _ = SomeUint64PtrErr (isEvenUint64PtrErr , []* uint64 {})
296+ r , _ = SomeUint64PtrErr (isEvenUint64PtrErr , []* uint64 {})
297297 if r {
298298 t .Errorf ("SomeUint64Ptr failed. Expected=false, actual=true" )
299299 }
@@ -335,7 +335,7 @@ func TestSomeUint32PtrErr(t *testing.T) {
335335 t .Errorf ("SomeUint32PtrErr failed. Expected=false, actual=true" )
336336 }
337337
338- r , _ = SomeUint32PtrErr (isEvenUint32PtrErr , []* uint32 {})
338+ r , _ = SomeUint32PtrErr (isEvenUint32PtrErr , []* uint32 {})
339339 if r {
340340 t .Errorf ("SomeUint32Ptr failed. Expected=false, actual=true" )
341341 }
@@ -377,7 +377,7 @@ func TestSomeUint16PtrErr(t *testing.T) {
377377 t .Errorf ("SomeUint16PtrErr failed. Expected=false, actual=true" )
378378 }
379379
380- r , _ = SomeUint16PtrErr (isEvenUint16PtrErr , []* uint16 {})
380+ r , _ = SomeUint16PtrErr (isEvenUint16PtrErr , []* uint16 {})
381381 if r {
382382 t .Errorf ("SomeUint16Ptr failed. Expected=false, actual=true" )
383383 }
@@ -419,7 +419,7 @@ func TestSomeUint8PtrErr(t *testing.T) {
419419 t .Errorf ("SomeUint8PtrErr failed. Expected=false, actual=true" )
420420 }
421421
422- r , _ = SomeUint8PtrErr (isEvenUint8PtrErr , []* uint8 {})
422+ r , _ = SomeUint8PtrErr (isEvenUint8PtrErr , []* uint8 {})
423423 if r {
424424 t .Errorf ("SomeUint8Ptr failed. Expected=false, actual=true" )
425425 }
@@ -461,7 +461,7 @@ func TestSomeStrPtrErr(t *testing.T) {
461461 t .Errorf ("SomeStrPtrErr failed. Expected=false, actual=true" )
462462 }
463463
464- r , _ = SomeStrPtrErr (isEvenStrPtrErr , []* string {})
464+ r , _ = SomeStrPtrErr (isEvenStrPtrErr , []* string {})
465465 if r {
466466 t .Errorf ("SomeStrPtr failed. Expected=false, actual=true" )
467467 }
@@ -480,18 +480,24 @@ func TestSomeBoolPtrErr(t *testing.T) {
480480 }
481481
482482 r , _ = SomeBoolPtrErr (nil , nil )
483-
484- if r {
483+
484+ if r {
485485 t .Errorf ("SomeBoolPtr failed. Expected=false, actual=true" )
486486 }
487487
488488 r , _ = SomeBoolPtrErr (func (v * bool ) (bool , error ) { return * v == true , nil }, []* bool {})
489- if r {
489+ if r {
490490 t .Errorf ("SomeBoolPtrErr failed. Expected=false, actual=true" )
491491 }
492492
493- _ , err := SomeBoolPtrErr (func (v * bool ) (bool , error ) { if * v == false { return false , errors .New ("false is invalid in this test" ) }; return * v == true , nil }, []* bool {& vf })
494- if err == nil {
493+ _ , err := SomeBoolPtrErr (func (v * bool ) (bool , error ) {
494+ if * v == false {
495+ return false , errors .New ("false is invalid in this test" )
496+ }
497+ return * v == true , nil
498+ }, []* bool {& vf })
499+
500+ if err == nil {
495501 t .Errorf ("SomeBoolPtrErr failed. Expected=false, actual=true" )
496502 }
497503}
@@ -532,7 +538,7 @@ func TestSomeFloat32PtrErr(t *testing.T) {
532538 t .Errorf ("SomeFloat32PtrErr failed. Expected=false, actual=true" )
533539 }
534540
535- r , _ = SomeFloat32PtrErr (isEvenFloat32PtrErr , []* float32 {})
541+ r , _ = SomeFloat32PtrErr (isEvenFloat32PtrErr , []* float32 {})
536542 if r {
537543 t .Errorf ("SomeFloat32Ptr failed. Expected=false, actual=true" )
538544 }
@@ -574,7 +580,7 @@ func TestSomeFloat64PtrErr(t *testing.T) {
574580 t .Errorf ("SomeFloat64PtrErr failed. Expected=false, actual=true" )
575581 }
576582
577- r , _ = SomeFloat64PtrErr (isEvenFloat64PtrErr , []* float64 {})
583+ r , _ = SomeFloat64PtrErr (isEvenFloat64PtrErr , []* float64 {})
578584 if r {
579585 t .Errorf ("SomeFloat64Ptr failed. Expected=false, actual=true" )
580586 }
0 commit comments