MCPcopy Index your code
hub / github.com/gotify/server / TestTokenGeneration

Function TestTokenGeneration

test/token_test.go:9–15  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

7)
8
9func TestTokenGeneration(t *testing.T) {
10 mockTokenFunc := Tokens("a", "b", "c")
11
12 for _, expected := range []string{"a", "b", "c", "a", "b", "c"} {
13 assert.Equal(t, expected, mockTokenFunc())
14 }
15}

Callers

nothing calls this directly

Calls 1

TokensFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…