ICU-745/Refactor internal/session to new domain errors (#877)
* Refactor internal/sessions to use domain errors
This commit is contained in:
1 parent
81785e139f
commit
178d4efa64
24 files changed
+404
-329
No files matched your search
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user