mirror of
https://github.com/wahyd4/loginsrv.git
synced 2026-08-09 04:46:29 +10:00
15 lines
291 B
Go
15 lines
291 B
Go
package osiam
|
|
|
|
import (
|
|
. "github.com/stretchr/testify/assert"
|
|
"testing"
|
|
)
|
|
|
|
func TestError_ParseOsiamError_CornerCases(t *testing.T) {
|
|
e := ParseOsiamError([]byte(""))
|
|
Equal(t, "client_parse_error", e.Error)
|
|
|
|
e = ParseOsiamError([]byte("{}"))
|
|
Equal(t, "client_parse_error", e.Error)
|
|
}
|