forked from tildetown/bbj2
WIP tests
parent
b804ae9d32
commit
6dc8964dd6
|
@ -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) {
|
||||
// TODO
|
||||
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
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue