MCPcopy Create free account
hub / github.com/Hidden-Node/GooseRelayVPN-AndroidClient / newTestCrypto

Function newTestCrypto

internal/frame/crypto_test.go:13–20  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

11const testKeyHex = "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef"
12
13func newTestCrypto(t *testing.T) *Crypto {
14 t.Helper()
15 c, err := NewCryptoFromHexKey(testKeyHex)
16 if err != nil {
17 t.Fatalf("new crypto: %v", err)
18 }
19 return c
20}
21
22func TestCryptoSealOpenRoundTrip(t *testing.T) {
23 c := newTestCrypto(t)

Calls 1

NewCryptoFromHexKeyFunction · 0.85

Tested by

no test coverage detected