MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / TestWebhookString

Function TestWebhookString

db/event_handler_test.go:20–32  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

18)
19
20func TestWebhookString(t *testing.T) {
21 var wh *Webhook
22
23 wh = &Webhook{
24 url: "http://username:password@example.com/foo",
25 }
26 assert.Equal(t, "Webhook handler [http://xxxxx:xxxxx@example.com/foo]", wh.String())
27
28 wh = &Webhook{
29 url: "http://example.com:9000/baz",
30 }
31 assert.Equal(t, "Webhook handler [http://example.com:9000/baz]", wh.String())
32}
33
34func TestSanitizedUrl(t *testing.T) {
35 var wh *Webhook

Callers

nothing calls this directly

Calls 2

StringMethod · 0.95
EqualMethod · 0.45

Tested by

no test coverage detected