WIP tests

trunk
vilmibm 2022-06-01 23:40:43 -05:00
parent b804ae9d32
commit 6dc8964dd6
1 changed files with 16 additions and 2 deletions

View File

@ -11,12 +11,26 @@ func TestInstanceInfo(t *testing.T) {
name string
opts config.Options
wantResp *BBJResponse
wantErr HTTPError
wantErr *HTTPError
}{}
for _, tt := range ts {
t.Run(tt.name, func(t *testing.T) {
api := &API{
Opts: config.Options{
// TODO
},
User: nil,
}
resp, err := api.InstanceInfo()
if tt.wantErr != nil && err != nil {
t.Errorf("got unwanted error: %s", err.Error())
return
}
if tt.wantResp != resp {
t.Errorf("wanted %#v got %#v", tt.wantResp, resp)
return
}
})
}
}