ICU-747,ICU-748/refactor internal/oplog and internal/perms to use domain errors (#854)
* Refactor internal/oplog to domain errors * Refactor internal/perms * Update changelog
This commit is contained in:
1 parent
27919ab11b
commit
84656dbfea
19 files changed
+308
-209
No files matched your search
@@ -57,6 +57,21 @@ func TestCode_Both_String_Info(t *testing.T) {
|
||||
c: KeyNotFound,
|
||||
want: KeyNotFound,
|
||||
},
|
||||
{
|
||||
name: "TicketAlreadyRedeemed",
|
||||
c: TicketAlreadyRedeemed,
|
||||
want: TicketAlreadyRedeemed,
|
||||
},
|
||||
{
|
||||
name: "TicketNotFound",
|
||||
c: TicketNotFound,
|
||||
want: TicketNotFound,
|
||||
},
|
||||
{
|
||||
name: "Io",
|
||||
c: Io,
|
||||
want: Io,
|
||||
},
|
||||
{
|
||||
name: "PasswordTooShort",
|
||||
c: PasswordTooShort,
|
||||
@@ -87,6 +102,16 @@ func TestCode_Both_String_Info(t *testing.T) {
|
||||
c: Decrypt,
|
||||
want: Decrypt,
|
||||
},
|
||||
{
|
||||
name: "Encode",
|
||||
c: Encode,
|
||||
want: Encode,
|
||||
},
|
||||
{
|
||||
name: "Decode",
|
||||
c: Decode,
|
||||
want: Decode,
|
||||
},
|
||||
{
|
||||
name: "CheckConstraint",
|
||||
c: CheckConstraint,
|
||||
|
||||
Reference in new issue
Block a user