drone/registry/app/api/controller/mocks/stream_producer.go
Manjunatha EN a73113f8e6 fix: [AH-771]: gitness unit test refactoring (#3589)
* fix merge conflicts
* fix merge conflicts
* fix review comment
* fix review comment
* fix review comment
* fix: [AH-771]: gitness unit test refactoring
* fix: [AH-771]: resolved review comments
* fix: [AH-771]: resolved review comments
* fix: [AH-771] Registry test refactoring and improvements

- Refactored registry metadata test implementations
- Improved code organization and readability
- Fixed line length issues in test files
- Removed unused fields from request.go
- Added proper license headers
- Fixed linting issues in mock files
- Simplified test setup and assertions
- Updated wire generation for cmd package
- Added nolint:exhaustive directive for package type switch

fix: [AH-771] Registry test refactoring and improvements

- Refactored registry metadata test implementations
- Improved code organization and readability
- Fixed line length issues in test files
- Removed unused fields from request.go
- Added proper license headers
- Fixed linting issues in mock files
- Simplifi
2025-04-22 14:49:24 +00:00

50 lines
1.1 KiB
Go

// Code generated by mockery v2.20.0. DO NOT EDIT.
package mocks
import (
"context"
mock "github.com/stretchr/testify/mock"
)
// StreamProducer is an autogenerated mock type for the StreamProducer type
type StreamProducer struct {
mock.Mock
}
// Send provides a mock function with given fields: ctx, topic, payload
func (m *StreamProducer) Send(ctx context.Context, topic string, payload map[string]interface{}) (string, error) {
ret := m.Called(ctx, topic, payload)
var r0 string
if rf, ok := ret.Get(0).(func(context.Context, string, map[string]interface{}) string); ok {
r0 = rf(ctx, topic, payload)
} else {
r0 = ret.Get(0).(string)
}
var r1 error
if rf, ok := ret.Get(1).(func(context.Context, string, map[string]interface{}) error); ok {
r1 = rf(ctx, topic, payload)
} else {
r1 = ret.Error(1)
}
return r0, r1
}
// Close provides a mock function with given fields:
func (m *StreamProducer) Close() error {
ret := m.Called()
var r0 error
if rf, ok := ret.Get(0).(func() error); ok {
r0 = rf()
} else {
r0 = ret.Error(0)
}
return r0
}