mohae / deepcopy

Deep copy things
MIT License
569 stars 122 forks source link

Format strings in test file are invalid #12

Closed maja42 closed 7 years ago

maja42 commented 7 years ago

When running the go vet tool on the test cases, the following problems are being reported:

deepcopy_test.go:978: arg copyB.Epsilon[k] for printf verb %d of wrong type: *utils.Bar
deepcopy_test.go:982: arg v for printf verb %d of wrong type: *utils.Bar
deepcopy_test.go:986: arg copyB.Epsilon[k].Beta for printf verb %d of wrong type: string
deepcopy_test.go:989: missing argument for Errorf("%d"): format reads arg 3, have only 2 args
deepcopy_test.go:995: arg copyB.Epsilon[k].Delta for printf verb %d of wrong type: *utils.Foo
deepcopy_test.go:1002: arg v.Delta.Alpha for printf verb %d of wrong type: string
deepcopy_test.go:1042: possible formatting directive in Error call
mohae commented 7 years ago

Thanks for pointing this out.

Fixed with commit c48cc78.