diff options
Diffstat (limited to 'internal/action')
-rw-r--r-- | internal/action/action.go | 31 | ||||
-rw-r--r-- | internal/action/mock_GTSAction.go | 32 |
2 files changed, 0 insertions, 63 deletions
diff --git a/internal/action/action.go b/internal/action/action.go deleted file mode 100644 index de803ba7c..000000000 --- a/internal/action/action.go +++ /dev/null @@ -1,31 +0,0 @@ -/* - GoToSocial - Copyright (C) 2021 GoToSocial Authors admin@gotosocial.org - - This program is free software: you can redistribute it and/or modify - it under the terms of the GNU Affero General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Affero General Public License for more details. - - You should have received a copy of the GNU Affero General Public License - along with this program. If not, see <http://www.gnu.org/licenses/>. -*/ - -package action - -import ( - "context" - - "github.com/sirupsen/logrus" - "github.com/superseriousbusiness/gotosocial/internal/config" -) - -// GTSAction defines one *action* that can be taken by the gotosocial cli command. -// This can be either a long-running action (like server start) or something -// shorter like db init or db inspect. -type GTSAction func(context.Context, *config.Config, *logrus.Logger) error diff --git a/internal/action/mock_GTSAction.go b/internal/action/mock_GTSAction.go deleted file mode 100644 index dbc83755f..000000000 --- a/internal/action/mock_GTSAction.go +++ /dev/null @@ -1,32 +0,0 @@ -// Code generated by mockery v2.7.4. DO NOT EDIT. - -package action - -import ( - context "context" - - config "github.com/superseriousbusiness/gotosocial/internal/config" - - logrus "github.com/sirupsen/logrus" - - mock "github.com/stretchr/testify/mock" -) - -// MockGTSAction is an autogenerated mock type for the GTSAction type -type MockGTSAction struct { - mock.Mock -} - -// Execute provides a mock function with given fields: _a0, _a1, _a2 -func (_m *MockGTSAction) Execute(_a0 context.Context, _a1 *config.Config, _a2 *logrus.Logger) error { - ret := _m.Called(_a0, _a1, _a2) - - var r0 error - if rf, ok := ret.Get(0).(func(context.Context, *config.Config, *logrus.Logger) error); ok { - r0 = rf(_a0, _a1, _a2) - } else { - r0 = ret.Error(0) - } - - return r0 -} |