protobuf: workaround a go vet error
vendor/src/github.com/golang/protobuf/proto/all_test.go:1284: result of fmt.Sprintf call not used Do we really need to execute go vet for vendor? I don't find how to exclude them. Signed-off-by: Andrey Vagin <avagin@openvz.org>
This commit is contained in:
parent
5231fbf143
commit
f5fad10193
|
@ -1281,7 +1281,9 @@ func TestEnum(t *testing.T) {
|
|||
// We don't care what the value actually is, just as long as it doesn't crash.
|
||||
func TestPrintingNilEnumFields(t *testing.T) {
|
||||
pb := new(GoEnum)
|
||||
fmt.Sprintf("%+v", pb)
|
||||
if fmt.Sprintf("%+v", pb) == "" {
|
||||
t.Errorf("expected non-empty string")
|
||||
}
|
||||
}
|
||||
|
||||
// Verify that absent required fields cause Marshal/Unmarshal to return errors.
|
||||
|
|
Loading…
Reference in New Issue