1 2 3 4 5 6 7 8 9 10 11 12 13
package identity import ( "testing" "github.com/stretchr/testify/assert" ) func TestBare_Id(t *testing.T) { i := NewBare("name", "email") id := i.Id() assert.Equal(t, "7b226e616d65223a226e616d65222c22", id) }