mirror of
https://github.com/rclone/rclone.git
synced 2025-12-18 09:13:15 +00:00
vendor: update all dependencies
* Update all dependencies * Remove all `[[constraint]]` from Gopkg.toml * Add in the minimum number of `[[override]]` to build * Remove go get of github.com/inconshreveable/mousetrap as it is vendored * Update docs with new policy on constraints
This commit is contained in:
11
vendor/github.com/golang/protobuf/proto/message_set_test.go
generated
vendored
11
vendor/github.com/golang/protobuf/proto/message_set_test.go
generated
vendored
@@ -64,3 +64,14 @@ func TestUnmarshalMessageSetWithDuplicate(t *testing.T) {
|
||||
t.Errorf("Combined extension is %q, want %q", got, want)
|
||||
}
|
||||
}
|
||||
|
||||
func TestMarshalMessageSetJSON_UnknownType(t *testing.T) {
|
||||
extMap := map[int32]Extension{12345: Extension{}}
|
||||
got, err := MarshalMessageSetJSON(extMap)
|
||||
if err != nil {
|
||||
t.Fatalf("MarshalMessageSetJSON: %v", err)
|
||||
}
|
||||
if want := []byte("{}"); !bytes.Equal(got, want) {
|
||||
t.Errorf("MarshalMessageSetJSON(%v) = %q, want %q", extMap, got, want)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user