github.com/kotovmak/go-admin@v1.1.1/modules/auth/auth_test.go (about)

     1  package auth
     2  
     3  import (
     4  	"testing"
     5  
     6  	"github.com/stretchr/testify/assert"
     7  )
     8  
     9  func TestEncodePassword(t *testing.T) {
    10  	pwd := EncodePassword([]byte("123456"))
    11  	assert.Equal(t, comparePassword("123456", pwd), true)
    12  }