From ed32b57a8052d53bdf7721498ffa9c3ef2746e4c Mon Sep 17 00:00:00 2001 From: MohitKatare-protean Date: Tue, 13 May 2025 12:33:32 +0530 Subject: [PATCH] fixed linting issues --- .../implementation/publisher/publisher_test.go | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/pkg/plugin/implementation/publisher/publisher_test.go b/pkg/plugin/implementation/publisher/publisher_test.go index b54fa9b..2c5915c 100644 --- a/pkg/plugin/implementation/publisher/publisher_test.go +++ b/pkg/plugin/implementation/publisher/publisher_test.go @@ -235,12 +235,6 @@ func (m *mockChannel) Close() error { return nil } -type mockConnection struct{} - -func (m *mockConnection) Close() error { - return nil -} - func TestNewPublisherSucess(t *testing.T) { originalDialFunc := DialFunc originalChannelFunc := ChannelFunc @@ -284,18 +278,6 @@ func TestNewPublisherSucess(t *testing.T) { } } -type mockChannelFailDeclare struct{} - -func (m *mockChannelFailDeclare) PublishWithContext(ctx context.Context, exchange, key string, mandatory, immediate bool, msg amqp091.Publishing) error { - return nil -} -func (m *mockChannelFailDeclare) ExchangeDeclare(name, kind string, durable, autoDelete, internal, noWait bool, args amqp091.Table) error { - return fmt.Errorf("simulated exchange declare error") -} -func (m *mockChannelFailDeclare) Close() error { - return nil -} - func TestNewPublisherFailures(t *testing.T) { tests := []struct { name string