security_test.go 241 B

123456789101112
  1. package objx_test
  2. import (
  3. "testing"
  4. "github.com/stretchr/objx"
  5. "github.com/stretchr/testify/assert"
  6. )
  7. func TestHashWithKey(t *testing.T) {
  8. assert.Equal(t, "0ce84d8d01f2c7b6e0882b784429c54d280ea2d9", objx.HashWithKey("abc", "def"))
  9. }