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

Function TestIsEncrypted

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

Source from the content-addressed store, hash-verified

79}
80
81func TestIsEncrypted(t *testing.T) {
82 assert.True(t, IsEncrypted("enc:somedata"))
83 assert.False(t, IsEncrypted("plaintext"))
84 assert.True(t, IsEncrypted("enc:"))
85 assert.False(t, IsEncrypted(""))
86}
87
88func TestDeriveKey_TooShort(t *testing.T) {
89 _, err := deriveKey([]byte("abc"))

Callers

nothing calls this directly

Calls 1

IsEncryptedFunction · 0.85

Tested by

no test coverage detected