MCPcopy Create free account
hub / github.com/CyCoreSystems/ari-proxy / TestMailboxDelete

Function TestMailboxDelete

internal/integration/mailbox.go:78–86  ·  view source on GitHub ↗
(t *testing.T, s Server)

Source from the content-addressed store, hash-verified

76}
77
78func TestMailboxDelete(t *testing.T, s Server) {
79 key := ari.NewKey(ari.MailboxKey, "mbox1")
80 runTest("ok", t, s, func(t *testing.T, m *mock, cl ari.Client) {
81 testMailboxCommand(t, m, "Delete", key, nil, cl.Mailbox().Delete)
82 })
83 runTest("err", t, s, func(t *testing.T, m *mock, cl ari.Client) {
84 testMailboxCommand(t, m, "Delete", key, errors.New("err"), cl.Mailbox().Delete)
85 })
86}
87
88func TestMailboxUpdate(t *testing.T, s Server) {
89 key := ari.NewKey(ari.MailboxKey, "mbox1")

Callers 2

TestMailboxDeleteFunction · 0.92
TestMailboxDeleteFunction · 0.92

Calls 4

runTestFunction · 0.85
testMailboxCommandFunction · 0.85
MailboxMethod · 0.80
NewMethod · 0.80

Tested by

no test coverage detected