MCPcopy Index your code
hub / github.com/coder/coder / TestGenerateDeterministicKey

Function TestGenerateDeterministicKey

agent/agentrsa/key_test.go:13–21  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

11)
12
13func TestGenerateDeterministicKey(t *testing.T) {
14 t.Parallel()
15
16 key1 := agentrsa.GenerateDeterministicKey(1234)
17 key2 := agentrsa.GenerateDeterministicKey(1234)
18
19 assert.Equal(t, key1, key2)
20 assert.EqualExportedValues(t, key1, key2)
21}
22
23var result *rsa.PrivateKey
24

Callers

nothing calls this directly

Calls 2

GenerateDeterministicKeyFunction · 0.92
EqualMethod · 0.45

Tested by

no test coverage detected