Skip to content

Commit 85f1c77

Browse files
committed
test: soap client call with nil structure
1 parent ed7b691 commit 85f1c77

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

soap_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,11 @@ func TestClient_CallByStruct(t *testing.T) {
215215
if rv.CountryCode != "IE" {
216216
t.Errorf("error: %+v", rv)
217217
}
218+
219+
_, err = soap.CallByStruct(nil)
220+
if err == nil {
221+
t.Error("err can't be nil")
222+
}
218223
}
219224

220225
func TestClient_Call_NonUtf8(t *testing.T) {

0 commit comments

Comments
 (0)