(t *testing.T)
| 200 | } |
| 201 | |
| 202 | func TestGetHash(t *testing.T) { |
| 203 | h := sha256.New() |
| 204 | _, err := h.Write([]byte("0xa0x140x313233343536373839")) |
| 205 | require.NoError(t, err) |
| 206 | |
| 207 | worker.Config.AclSecretKeyBytes = x.Sensitive("123456789") |
| 208 | require.Equal(t, hex.EncodeToString(h.Sum(nil)), getHash(10, 20)) |
| 209 | } |
| 210 | |
| 211 | func TestVerifyUniqueWithinMutationBoundsChecks(t *testing.T) { |
| 212 | t.Run("gmuIndex out of bounds", func(t *testing.T) { |