MCPcopy Create free account
hub / github.com/devaccuracy/ledgerforge / TestGenerateKey

Function TestGenerateKey

model/model_test.go:588–597  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

586}
587
588func TestGenerateKey(t *testing.T) {
589 key, err := GenerateKey()
590 assert.NoError(t, err)
591 assert.NotEmpty(t, key)
592 assert.Greater(t, len(key), 20)
593
594 key2, err := GenerateKey()
595 assert.NoError(t, err)
596 assert.NotEqual(t, key, key2)
597}
598
599func TestNewAPIKey(t *testing.T) {
600 name := "Test Key"

Callers

nothing calls this directly

Calls 1

GenerateKeyFunction · 0.85

Tested by

no test coverage detected