MCPcopy
hub / github.com/kopia/kopia / TestPushover_Invalid

Function TestPushover_Invalid

notification/sender/pushover/pushover_sender_test.go:97–107  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

95}
96
97func TestPushover_Invalid(t *testing.T) {
98 ctx := testlogging.Context(t)
99
100 _, err := sender.GetSender(ctx, "my-profile", "pushover", &pushover.Options{})
101 require.ErrorContains(t, err, "App Token must be provided")
102
103 _, err = sender.GetSender(ctx, "my-profile", "pushover", &pushover.Options{
104 AppToken: "some-token",
105 })
106 require.ErrorContains(t, err, "User Key must be provided")
107}
108
109func TestMergeOptions(t *testing.T) {
110 var dst pushover.Options

Callers

nothing calls this directly

Calls 2

ContextFunction · 0.92
GetSenderFunction · 0.92

Tested by

no test coverage detected