MCPcopy
hub / github.com/gotify/server / TestUI

Function TestUI

docs/ui_test.go:12–24  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

10)
11
12func TestUI(t *testing.T) {
13 mode.Set(mode.TestDev)
14 recorder := httptest.NewRecorder()
15 ctx, _ := gin.CreateTestContext(recorder)
16 withURL(ctx, "http", "example.com")
17
18 ctx.Request = httptest.NewRequest("GET", "/swagger", nil)
19
20 UI(ctx)
21
22 content := recorder.Body.String()
23 assert.NotEmpty(t, content)
24}

Callers

nothing calls this directly

Calls 4

SetFunction · 0.92
UIFunction · 0.85
StringMethod · 0.80
withURLFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…