fix: all enums same style (#262)

* fix: all enums same style

* fix: rename process to reduce

* add some missing enum renaming

Co-authored-by: Livio Amstutz <[email protected]>
This commit is contained in:
Fabi
2020-06-23 14:47:47 +02:00
committed by GitHub
co-authored by Livio Amstutz
parent c376b92315
commit 3cd3a238c2
152 changed files with 1026 additions and 1024 deletions
@@ -22,7 +22,7 @@ func TestAppendDeactivatedEvent(t *testing.T) {
args: args{
user: &User{},
},
result: &User{State: int32(model.USERSTATE_INACTIVE)},
result: &User{State: int32(model.UserStateInactive)},
},
}
for _, tt := range tests {
@@ -49,7 +49,7 @@ func TestAppendReactivatedEvent(t *testing.T) {
args: args{
user: &User{},
},
result: &User{State: int32(model.USERSTATE_ACTIVE)},
result: &User{State: int32(model.UserStateActive)},
},
}
for _, tt := range tests {
@@ -76,7 +76,7 @@ func TestAppendLockEvent(t *testing.T) {
args: args{
user: &User{},
},
result: &User{State: int32(model.USERSTATE_LOCKED)},
result: &User{State: int32(model.UserStateLocked)},
},
}
for _, tt := range tests {
@@ -103,7 +103,7 @@ func TestAppendUnlockEvent(t *testing.T) {
args: args{
user: &User{},
},
result: &User{State: int32(model.USERSTATE_ACTIVE)},
result: &User{State: int32(model.UserStateActive)},
},
}
for _, tt := range tests {