diff options
author | George Goldberg <george@gberg.me> | 2018-04-18 10:18:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-18 10:18:07 +0100 |
commit | b13a228b0451098ea32933a36fe64566e366583d (patch) | |
tree | 569aa0c6c5f273b806b4c3e0c59801204916492c /store/storetest/mocks/LayeredStoreSupplier.go | |
parent | a1882d4004ce624dad1b8624804e974f209efe8d (diff) | |
download | chat-b13a228b0451098ea32933a36fe64566e366583d.tar.gz chat-b13a228b0451098ea32933a36fe64566e366583d.tar.bz2 chat-b13a228b0451098ea32933a36fe64566e366583d.zip |
MM-10121: CLI command to reset permissions system to default state. (#8637)
* MM-10121: CLI command to reset permissions system to default state.
* Review comment.
Diffstat (limited to 'store/storetest/mocks/LayeredStoreSupplier.go')
-rw-r--r-- | store/storetest/mocks/LayeredStoreSupplier.go | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/store/storetest/mocks/LayeredStoreSupplier.go b/store/storetest/mocks/LayeredStoreSupplier.go index 59fd31cb8..d4242708b 100644 --- a/store/storetest/mocks/LayeredStoreSupplier.go +++ b/store/storetest/mocks/LayeredStoreSupplier.go @@ -214,6 +214,29 @@ func (_m *LayeredStoreSupplier) RoleGetByNames(ctx context.Context, names []stri return r0 } +// RolePermanentDeleteAll provides a mock function with given fields: ctx, hints +func (_m *LayeredStoreSupplier) RolePermanentDeleteAll(ctx context.Context, hints ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult { + _va := make([]interface{}, len(hints)) + for _i := range hints { + _va[_i] = hints[_i] + } + var _ca []interface{} + _ca = append(_ca, ctx) + _ca = append(_ca, _va...) + ret := _m.Called(_ca...) + + var r0 *store.LayeredStoreSupplierResult + if rf, ok := ret.Get(0).(func(context.Context, ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult); ok { + r0 = rf(ctx, hints...) + } else { + if ret.Get(0) != nil { + r0 = ret.Get(0).(*store.LayeredStoreSupplierResult) + } + } + + return r0 +} + // RoleSave provides a mock function with given fields: ctx, role, hints func (_m *LayeredStoreSupplier) RoleSave(ctx context.Context, role *model.Role, hints ...store.LayeredStoreHint) *store.LayeredStoreSupplierResult { _va := make([]interface{}, len(hints)) |