loginsrv

Unnamed repository; edit this file 'description' to name the repository.
git clone git@jamesshield.xyz:repos/loginsrv.git
Log | Files | Refs | README | LICENSE

commit 70c41144b38ffeab5d47627d7fd7550bfb6e4c65
parent 8e8ef350b658fc242408ffd7d6d076181aaec0bf
Author: Sebastian Mancke <s.mancke@tarent.de>
Date:   Sun, 20 Nov 2016 11:58:49 +0100

osiam test coverage

Diffstat:
Aosiam/error_test.go | 14++++++++++++++
1 file changed, 14 insertions(+), 0 deletions(-)

diff --git a/osiam/error_test.go b/osiam/error_test.go @@ -0,0 +1,14 @@ +package osiam + +import ( + "github.com/stretchr/testify/assert" + "testing" +) + +func TestError_ParseOsiamError_CornerCases(t *testing.T) { + e := ParseOsiamError([]byte("")) + assert.Equal(t, "client_parse_error", e.Error) + + e = ParseOsiamError([]byte("{}")) + assert.Equal(t, "client_parse_error", e.Error) +}