mirror of
https://github.com/nikoksr/notify.git
synced 2024-12-10 10:10:24 +02:00
61 lines
1.6 KiB
Go
61 lines
1.6 KiB
Go
// Code generated by mockery v2.14.0. DO NOT EDIT.
|
|
|
|
package msteams
|
|
|
|
import (
|
|
context "context"
|
|
|
|
goteamsnotify "github.com/atc0005/go-teams-notify/v2"
|
|
mock "github.com/stretchr/testify/mock"
|
|
)
|
|
|
|
// mockTeamsClient is an autogenerated mock type for the teamsClient type
|
|
type mockTeamsClient struct {
|
|
mock.Mock
|
|
}
|
|
|
|
// SendWithContext provides a mock function with given fields: ctx, webhookURL, webhookMessage
|
|
func (_m *mockTeamsClient) SendWithContext(ctx context.Context, webhookURL string, webhookMessage goteamsnotify.MessageCard) error {
|
|
ret := _m.Called(ctx, webhookURL, webhookMessage)
|
|
|
|
var r0 error
|
|
if rf, ok := ret.Get(0).(func(context.Context, string, goteamsnotify.MessageCard) error); ok {
|
|
r0 = rf(ctx, webhookURL, webhookMessage)
|
|
} else {
|
|
r0 = ret.Error(0)
|
|
}
|
|
|
|
return r0
|
|
}
|
|
|
|
// SkipWebhookURLValidationOnSend provides a mock function with given fields: skip
|
|
func (_m *mockTeamsClient) SkipWebhookURLValidationOnSend(skip bool) goteamsnotify.API {
|
|
ret := _m.Called(skip)
|
|
|
|
var r0 goteamsnotify.API
|
|
if rf, ok := ret.Get(0).(func(bool) goteamsnotify.API); ok {
|
|
r0 = rf(skip)
|
|
} else {
|
|
if ret.Get(0) != nil {
|
|
r0 = ret.Get(0).(goteamsnotify.API)
|
|
}
|
|
}
|
|
|
|
return r0
|
|
}
|
|
|
|
type mockConstructorTestingTnewMockTeamsClient interface {
|
|
mock.TestingT
|
|
Cleanup(func())
|
|
}
|
|
|
|
// newMockTeamsClient creates a new instance of mockTeamsClient. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
|
|
func newMockTeamsClient(t mockConstructorTestingTnewMockTeamsClient) *mockTeamsClient {
|
|
mock := &mockTeamsClient{}
|
|
mock.Mock.Test(t)
|
|
|
|
t.Cleanup(func() { mock.AssertExpectations(t) })
|
|
|
|
return mock
|
|
}
|