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:
Louis Ruch authored and GitHub committed 2021-01-13 15:50:07 -08:00
1 parent 27919ab11b
commit 84656dbfea
19 files changed
+308 -209

No files matched your search

+25
View File
@@ -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,