MCPcopy Index your code
hub / github.com/GoEdgeLab/EdgeNode / TestMagicKeyEncode

Function TestMagicKeyEncode

internal/encrypt/magic_key_test.go:5–11  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

3import "testing"
4
5func TestMagicKeyEncode(t *testing.T) {
6 dst := MagicKeyEncode([]byte("Hello,World"))
7 t.Log("dst:", string(dst))
8
9 src := MagicKeyDecode(dst)
10 t.Log("src:", string(src))
11}

Callers

nothing calls this directly

Calls 3

MagicKeyEncodeFunction · 0.85
MagicKeyDecodeFunction · 0.85
LogMethod · 0.80

Tested by

no test coverage detected