ICU-745/Refactor internal/session to new domain errors (#877)

* Refactor internal/sessions to use domain errors
This commit is contained in:
Louis Ruch authored and GitHub committed 2021-02-03 16:25:56 -08:00
1 parent 81785e139f
commit 178d4efa64
24 files changed
+404 -329

No files matched your search

+25
View File
@@ -77,6 +77,21 @@ func TestCode_Both_String_Info(t *testing.T) {
c: InvalidTimeStamp,
want: InvalidTimeStamp,
},
{
name: "SessionNotFound",
c: SessionNotFound,
want: SessionNotFound,
},
{
name: "InvalidSessionState",
c: InvalidSessionState,
want: InvalidSessionState,
},
{
name: "TokenMismatch",
c: TokenMismatch,
want: TokenMismatch,
},
{
name: "PasswordTooShort",
c: PasswordTooShort,
@@ -117,6 +132,16 @@ func TestCode_Both_String_Info(t *testing.T) {
c: Decode,
want: Decode,
},
{
name: "GenKey",
c: GenKey,
want: GenKey,
},
{
name: "GenCert",
c: GenCert,
want: GenCert,
},
{
name: "CheckConstraint",
c: CheckConstraint,