From 030c9c12ee4c4ec0ff23720cf796c777981ff80f Mon Sep 17 00:00:00 2001 From: John Beisley Date: Sat, 26 Mar 2022 11:10:48 +0000 Subject: [PATCH] Add omitted TestStructWrapped test for URIField. --- v2alpha/soap/types/types_test.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/v2alpha/soap/types/types_test.go b/v2alpha/soap/types/types_test.go index 4478b24..c8566f5 100644 --- a/v2alpha/soap/types/types_test.go +++ b/v2alpha/soap/types/types_test.go @@ -5,6 +5,7 @@ import ( "encoding/xml" "fmt" "math" + "net/url" "testing" "time" @@ -572,6 +573,10 @@ func TestStructWrapped(t *testing.T) { tod := TimeOfDay{12, 34, 56} date := Date{2001, 2, 3} tzd := TZD{3600, true} + url, err := url.Parse("https://example.com/path?k=v") + if err != nil { + t.Fatal(err) + } original := &wrapper{ UI1Field: 1, UI2Field: 2, @@ -593,6 +598,7 @@ func TestStructWrapped(t *testing.T) { BooleanField: true, BinBase64Field: BinBase64{1, 2, 3, 4}, BinHexField: BinHex{1, 2, 3, 4}, + URIField: URI(*url), } marshalled, err := xml.Marshal(original)