(t *testing.T)
| 48 | } |
| 49 | |
| 50 | func TestSimpleEncrypt_Concurrent(t *testing.T) { |
| 51 | var wg = sync.WaitGroup{} |
| 52 | var arr = []string{"Hello", "World", "People"} |
| 53 | wg.Add(len(arr)) |
| 54 | for _, s := range arr { |
| 55 | go func(s string) { |
| 56 | defer wg.Done() |
| 57 | t.Log(string(utils.SimpleDecrypt(utils.SimpleEncrypt([]byte(s))))) |
| 58 | }(s) |
| 59 | } |
| 60 | wg.Wait() |
| 61 | } |
| 62 | |
| 63 | func TestSimpleEncryptMap(t *testing.T) { |
| 64 | var m = maps.Map{ |
nothing calls this directly
no test coverage detected