Add e2e tests
This commit is contained in:
parent
99a355f25d
commit
601fb7dacf
1163 changed files with 289217 additions and 14195 deletions
8
vendor/github.com/gogo/protobuf/proto/text_test.go
generated
vendored
8
vendor/github.com/gogo/protobuf/proto/text_test.go
generated
vendored
|
|
@ -339,13 +339,13 @@ func TestStringEscaping(t *testing.T) {
|
|||
}
|
||||
|
||||
// Check round-trip.
|
||||
pb := new(pb.Strings)
|
||||
if err := proto.UnmarshalText(s, pb); err != nil {
|
||||
pbStrings := new(pb.Strings)
|
||||
if err := proto.UnmarshalText(s, pbStrings); err != nil {
|
||||
t.Errorf("#%d: UnmarshalText: %v", i, err)
|
||||
continue
|
||||
}
|
||||
if !proto.Equal(pb, tc.in) {
|
||||
t.Errorf("#%d: Round-trip failed:\nstart: %v\n end: %v", i, tc.in, pb)
|
||||
if !proto.Equal(pbStrings, tc.in) {
|
||||
t.Errorf("#%d: Round-trip failed:\nstart: %v\n end: %v", i, tc.in, pbStrings)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue