MCPcopy
hub / github.com/mxpv/podsync / TestNewRotatedKeys

Function TestNewRotatedKeys

pkg/feed/key_test.go:17–26  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

15}
16
17func TestNewRotatedKeys(t *testing.T) {
18 key, err := NewRotatedKeys([]string{"123", "456"})
19 assert.NoError(t, err)
20
21 assert.EqualValues(t, "123", key.Get())
22 assert.EqualValues(t, "456", key.Get())
23
24 assert.EqualValues(t, "123", key.Get())
25 assert.EqualValues(t, "456", key.Get())
26}

Callers

nothing calls this directly

Calls 2

NewRotatedKeysFunction · 0.85
GetMethod · 0.65

Tested by

no test coverage detected