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

Function TestDeriveKey_MinLength

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

Source from the content-addressed store, hash-verified

275}
276
277func TestDeriveKey_MinLength(t *testing.T) {
278 // Exactly 4 characters should work
279 key, err := deriveKey([]byte("abcd"))
280 assert.NoError(t, err)
281 assert.Equal(t, 32, len(key))
282}
283
284func TestGetMasterKey_InteractivePromptError(t *testing.T) {
285 // When no env var is set and stdin is not a terminal (as in tests),

Callers

nothing calls this directly

Calls 1

deriveKeyFunction · 0.85

Tested by

no test coverage detected