This is an automated email from the ASF dual-hosted git repository.
sruehl pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/plc4x.git
The following commit(s) were added to refs/heads/develop by this push:
new 577d61e312 test(plc4go/spi): code sync
577d61e312 is described below
commit 577d61e312bf465f6c037d6a7625ac336b776732
Author: Sebastian Rühl <[email protected]>
AuthorDate: Wed May 31 17:26:56 2023 +0200
test(plc4go/spi): code sync
---
.../mock_RequestTransactionManagerOption_test.go | 85 -------------
plc4go/spi/utils/mock_CompletionFuture_test.go | 132 ---------------------
plc4go/spi/utils/mock_Runnable_test.go | 84 -------------
3 files changed, 301 deletions(-)
diff --git
a/plc4go/spi/transactions/mock_RequestTransactionManagerOption_test.go
b/plc4go/spi/transactions/mock_RequestTransactionManagerOption_test.go
deleted file mode 100644
index 8bea8076f2..0000000000
--- a/plc4go/spi/transactions/mock_RequestTransactionManagerOption_test.go
+++ /dev/null
@@ -1,85 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-// Code generated by mockery v2.28.1. DO NOT EDIT.
-
-package transactions
-
-import mock "github.com/stretchr/testify/mock"
-
-// MockRequestTransactionManagerOption is an autogenerated mock type for the
RequestTransactionManagerOption type
-type MockRequestTransactionManagerOption struct {
- mock.Mock
-}
-
-type MockRequestTransactionManagerOption_Expecter struct {
- mock *mock.Mock
-}
-
-func (_m *MockRequestTransactionManagerOption) EXPECT()
*MockRequestTransactionManagerOption_Expecter {
- return &MockRequestTransactionManagerOption_Expecter{mock: &_m.Mock}
-}
-
-// Execute provides a mock function with given fields:
requestTransactionManager
-func (_m *MockRequestTransactionManagerOption)
Execute(requestTransactionManager *requestTransactionManager) {
- _m.Called(requestTransactionManager)
-}
-
-// MockRequestTransactionManagerOption_Execute_Call is a *mock.Call that
shadows Run/Return methods with type explicit version for method 'Execute'
-type MockRequestTransactionManagerOption_Execute_Call struct {
- *mock.Call
-}
-
-// Execute is a helper method to define mock.On call
-// - requestTransactionManager *requestTransactionManager
-func (_e *MockRequestTransactionManagerOption_Expecter)
Execute(requestTransactionManager interface{})
*MockRequestTransactionManagerOption_Execute_Call {
- return &MockRequestTransactionManagerOption_Execute_Call{Call:
_e.mock.On("Execute", requestTransactionManager)}
-}
-
-func (_c *MockRequestTransactionManagerOption_Execute_Call) Run(run
func(requestTransactionManager *requestTransactionManager))
*MockRequestTransactionManagerOption_Execute_Call {
- _c.Call.Run(func(args mock.Arguments) {
- run(args[0].(*requestTransactionManager))
- })
- return _c
-}
-
-func (_c *MockRequestTransactionManagerOption_Execute_Call) Return()
*MockRequestTransactionManagerOption_Execute_Call {
- _c.Call.Return()
- return _c
-}
-
-func (_c *MockRequestTransactionManagerOption_Execute_Call) RunAndReturn(run
func(*requestTransactionManager))
*MockRequestTransactionManagerOption_Execute_Call {
- _c.Call.Return(run)
- return _c
-}
-
-type mockConstructorTestingTNewMockRequestTransactionManagerOption interface {
- mock.TestingT
- Cleanup(func())
-}
-
-// NewMockRequestTransactionManagerOption creates a new instance of
MockRequestTransactionManagerOption. It also registers a testing interface on
the mock and a cleanup function to assert the mocks expectations.
-func NewMockRequestTransactionManagerOption(t
mockConstructorTestingTNewMockRequestTransactionManagerOption)
*MockRequestTransactionManagerOption {
- mock := &MockRequestTransactionManagerOption{}
- mock.Mock.Test(t)
-
- t.Cleanup(func() { mock.AssertExpectations(t) })
-
- return mock
-}
diff --git a/plc4go/spi/utils/mock_CompletionFuture_test.go
b/plc4go/spi/utils/mock_CompletionFuture_test.go
deleted file mode 100644
index 3a21ffd993..0000000000
--- a/plc4go/spi/utils/mock_CompletionFuture_test.go
+++ /dev/null
@@ -1,132 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-// Code generated by mockery v2.28.1. DO NOT EDIT.
-
-package utils
-
-import (
- context "context"
-
- mock "github.com/stretchr/testify/mock"
-)
-
-// MockCompletionFuture is an autogenerated mock type for the CompletionFuture
type
-type MockCompletionFuture struct {
- mock.Mock
-}
-
-type MockCompletionFuture_Expecter struct {
- mock *mock.Mock
-}
-
-func (_m *MockCompletionFuture) EXPECT() *MockCompletionFuture_Expecter {
- return &MockCompletionFuture_Expecter{mock: &_m.Mock}
-}
-
-// AwaitCompletion provides a mock function with given fields: ctx
-func (_m *MockCompletionFuture) AwaitCompletion(ctx context.Context) error {
- ret := _m.Called(ctx)
-
- var r0 error
- if rf, ok := ret.Get(0).(func(context.Context) error); ok {
- r0 = rf(ctx)
- } else {
- r0 = ret.Error(0)
- }
-
- return r0
-}
-
-// MockCompletionFuture_AwaitCompletion_Call is a *mock.Call that shadows
Run/Return methods with type explicit version for method 'AwaitCompletion'
-type MockCompletionFuture_AwaitCompletion_Call struct {
- *mock.Call
-}
-
-// AwaitCompletion is a helper method to define mock.On call
-// - ctx context.Context
-func (_e *MockCompletionFuture_Expecter) AwaitCompletion(ctx interface{})
*MockCompletionFuture_AwaitCompletion_Call {
- return &MockCompletionFuture_AwaitCompletion_Call{Call:
_e.mock.On("AwaitCompletion", ctx)}
-}
-
-func (_c *MockCompletionFuture_AwaitCompletion_Call) Run(run func(ctx
context.Context)) *MockCompletionFuture_AwaitCompletion_Call {
- _c.Call.Run(func(args mock.Arguments) {
- run(args[0].(context.Context))
- })
- return _c
-}
-
-func (_c *MockCompletionFuture_AwaitCompletion_Call) Return(_a0 error)
*MockCompletionFuture_AwaitCompletion_Call {
- _c.Call.Return(_a0)
- return _c
-}
-
-func (_c *MockCompletionFuture_AwaitCompletion_Call) RunAndReturn(run
func(context.Context) error) *MockCompletionFuture_AwaitCompletion_Call {
- _c.Call.Return(run)
- return _c
-}
-
-// Cancel provides a mock function with given fields: interrupt, err
-func (_m *MockCompletionFuture) Cancel(interrupt bool, err error) {
- _m.Called(interrupt, err)
-}
-
-// MockCompletionFuture_Cancel_Call is a *mock.Call that shadows Run/Return
methods with type explicit version for method 'Cancel'
-type MockCompletionFuture_Cancel_Call struct {
- *mock.Call
-}
-
-// Cancel is a helper method to define mock.On call
-// - interrupt bool
-// - err error
-func (_e *MockCompletionFuture_Expecter) Cancel(interrupt interface{}, err
interface{}) *MockCompletionFuture_Cancel_Call {
- return &MockCompletionFuture_Cancel_Call{Call: _e.mock.On("Cancel",
interrupt, err)}
-}
-
-func (_c *MockCompletionFuture_Cancel_Call) Run(run func(interrupt bool, err
error)) *MockCompletionFuture_Cancel_Call {
- _c.Call.Run(func(args mock.Arguments) {
- run(args[0].(bool), args[1].(error))
- })
- return _c
-}
-
-func (_c *MockCompletionFuture_Cancel_Call) Return()
*MockCompletionFuture_Cancel_Call {
- _c.Call.Return()
- return _c
-}
-
-func (_c *MockCompletionFuture_Cancel_Call) RunAndReturn(run func(bool,
error)) *MockCompletionFuture_Cancel_Call {
- _c.Call.Return(run)
- return _c
-}
-
-type mockConstructorTestingTNewMockCompletionFuture interface {
- mock.TestingT
- Cleanup(func())
-}
-
-// NewMockCompletionFuture creates a new instance of MockCompletionFuture. It
also registers a testing interface on the mock and a cleanup function to assert
the mocks expectations.
-func NewMockCompletionFuture(t mockConstructorTestingTNewMockCompletionFuture)
*MockCompletionFuture {
- mock := &MockCompletionFuture{}
- mock.Mock.Test(t)
-
- t.Cleanup(func() { mock.AssertExpectations(t) })
-
- return mock
-}
diff --git a/plc4go/spi/utils/mock_Runnable_test.go
b/plc4go/spi/utils/mock_Runnable_test.go
deleted file mode 100644
index c6fdf639d0..0000000000
--- a/plc4go/spi/utils/mock_Runnable_test.go
+++ /dev/null
@@ -1,84 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-// Code generated by mockery v2.28.1. DO NOT EDIT.
-
-package utils
-
-import mock "github.com/stretchr/testify/mock"
-
-// MockRunnable is an autogenerated mock type for the Runnable type
-type MockRunnable struct {
- mock.Mock
-}
-
-type MockRunnable_Expecter struct {
- mock *mock.Mock
-}
-
-func (_m *MockRunnable) EXPECT() *MockRunnable_Expecter {
- return &MockRunnable_Expecter{mock: &_m.Mock}
-}
-
-// Execute provides a mock function with given fields:
-func (_m *MockRunnable) Execute() {
- _m.Called()
-}
-
-// MockRunnable_Execute_Call is a *mock.Call that shadows Run/Return methods
with type explicit version for method 'Execute'
-type MockRunnable_Execute_Call struct {
- *mock.Call
-}
-
-// Execute is a helper method to define mock.On call
-func (_e *MockRunnable_Expecter) Execute() *MockRunnable_Execute_Call {
- return &MockRunnable_Execute_Call{Call: _e.mock.On("Execute")}
-}
-
-func (_c *MockRunnable_Execute_Call) Run(run func())
*MockRunnable_Execute_Call {
- _c.Call.Run(func(args mock.Arguments) {
- run()
- })
- return _c
-}
-
-func (_c *MockRunnable_Execute_Call) Return() *MockRunnable_Execute_Call {
- _c.Call.Return()
- return _c
-}
-
-func (_c *MockRunnable_Execute_Call) RunAndReturn(run func())
*MockRunnable_Execute_Call {
- _c.Call.Return(run)
- return _c
-}
-
-type mockConstructorTestingTNewMockRunnable interface {
- mock.TestingT
- Cleanup(func())
-}
-
-// NewMockRunnable creates a new instance of MockRunnable. It also registers a
testing interface on the mock and a cleanup function to assert the mocks
expectations.
-func NewMockRunnable(t mockConstructorTestingTNewMockRunnable) *MockRunnable {
- mock := &MockRunnable{}
- mock.Mock.Test(t)
-
- t.Cleanup(func() { mock.AssertExpectations(t) })
-
- return mock
-}