MCPcopy Create free account
hub / github.com/Driver-C/tryssh / TestDeriveKey_Valid

Function TestDeriveKey_Valid

pkg/utils/crypto_test.go:93–97  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

91}
92
93func TestDeriveKey_Valid(t *testing.T) {
94 key, err := deriveKey([]byte("mypassword"))
95 assert.NoError(t, err)
96 assert.Equal(t, 32, len(key))
97}
98
99func TestMaskSecret(t *testing.T) {
100 assert.Equal(t, "<empty>", MaskSecret(""))

Callers

nothing calls this directly

Calls 1

deriveKeyFunction · 0.85

Tested by

no test coverage detected