(t *testing.T)
| 61 | } |
| 62 | |
| 63 | func TestSimpleEncryptMap(t *testing.T) { |
| 64 | var m = maps.Map{ |
| 65 | "s": "Hello", |
| 66 | "i": 20, |
| 67 | "b": true, |
| 68 | } |
| 69 | encodedResult, err := utils.SimpleEncryptMap(m) |
| 70 | if err != nil { |
| 71 | t.Fatal(err) |
| 72 | } |
| 73 | t.Log("result:", encodedResult) |
| 74 | |
| 75 | decodedResult, err := utils.SimpleDecryptMap(encodedResult) |
| 76 | if err != nil { |
| 77 | t.Fatal(err) |
| 78 | } |
| 79 | t.Log(decodedResult) |
| 80 | } |
nothing calls this directly
no test coverage detected