(t *testing.T)
| 11 | ) |
| 12 | |
| 13 | func TestSimpleEncrypt(t *testing.T) { |
| 14 | var a = assert.NewAssertion(t) |
| 15 | |
| 16 | var arr = []string{"Hello", "World", "People"} |
| 17 | for _, s := range arr { |
| 18 | var value = []byte(s) |
| 19 | var encoded = utils.SimpleEncrypt(value) |
| 20 | t.Log(encoded, string(encoded)) |
| 21 | var decoded = utils.SimpleDecrypt(encoded) |
| 22 | t.Log(decoded, string(decoded)) |
| 23 | a.IsTrue(s == string(decoded)) |
| 24 | } |
| 25 | } |
| 26 | |
| 27 | func TestSimpleEncryptObject(t *testing.T) { |
| 28 | var a = assert.NewAssertion(t) |
nothing calls this directly
no test coverage detected