Skip to content

Commit fec08b4

Browse files
authored
Improve apps_manifest.go coverage (#1703)
1 parent 919bef8 commit fec08b4

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

github/apps_manifest_test.go

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,18 @@ func TestGetConfig(t *testing.T) {
5151
if !reflect.DeepEqual(cfg, want) {
5252
t.Errorf("GetConfig returned %+v, want %+v", cfg, want)
5353
}
54+
55+
const methodName = "CompleteAppManifest"
56+
testBadOptions(t, methodName, func() (err error) {
57+
_, _, err = client.Apps.CompleteAppManifest(ctx, "\n")
58+
return err
59+
})
60+
61+
testNewRequestAndDoFailure(t, methodName, client, func() (*Response, error) {
62+
got, resp, err := client.Apps.CompleteAppManifest(ctx, "code")
63+
if got != nil {
64+
t.Errorf("testNewRequestAndDoFailure %v = %#v, want nil", methodName, got)
65+
}
66+
return resp, err
67+
})
5468
}

0 commit comments

Comments
 (0)