MCPcopy Create free account
hub / github.com/git-bug/git-bug / TestTokenSerial

Function TestTokenSerial

bridge/core/auth/token_test.go:9–13  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

7)
8
9func TestTokenSerial(t *testing.T) {
10 original := NewToken("github", "value")
11 loaded := testCredentialSerial(t, original)
12 assert.Equal(t, original.Value, loaded.(*Token).Value)
13}

Callers

nothing calls this directly

Calls 2

NewTokenFunction · 0.85
testCredentialSerialFunction · 0.85

Tested by

no test coverage detected