MCPcopy Create free account
hub / github.com/encodeous/nylon / TestGenerateKey

Function TestGenerateKey

state/crypto_test.go:21–26  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

19}
20
21func TestGenerateKey(t *testing.T) {
22 key := GenerateKey()
23 pub := key.Pubkey()
24 _, err := pub.MarshalText()
25 assert.NoError(t, err)
26}

Callers

nothing calls this directly

Calls 3

GenerateKeyFunction · 0.85
PubkeyMethod · 0.80
MarshalTextMethod · 0.45

Tested by

no test coverage detected