func (mmAddAttributes *mSpanInterfaceMockAddAttributes) Expect(attributes ...mm_trace.Attribute) *mSpanInterfaceMockAddAttributes {
	if mmAddAttributes.mock.funcAddAttributes != nil {
		mmAddAttributes.mock.t.Fatalf("SpanInterfaceMock.AddAttributes mock is already set by Set")
	}
	if mmAddAttributes.defaultExpectation == nil {
		mmAddAttributes.defaultExpectation = &SpanInterfaceMockAddAttributesExpectation{}
	}
	mmAddAttributes.defaultExpectation.params = &SpanInterfaceMockAddAttributesParams{attributes}
	for _, e := range mmAddAttributes.expectations {
		if minimock.Equal(e.params, mmAddAttributes.defaultExpectation.params) {
			mmAddAttributes.mock.t.Fatalf("Expectation set by When has same params: %#v", *mmAddAttributes.defaultExpectation.params)
		}
	}
	return mmAddAttributes
}
Expect sets up expected params for SpanInterface.AddAttributes
package templatestests
import (
	"sync"
	mm_atomic "sync/atomic"
	mm_time "time"
	"github.com/gojuno/minimock/v3"
	mm_trace "go.opencensus.io/trace"
)
type SpanInterfaceMock struct {
	t minimock.Tester
	funcAddAttributes          func(attributes ...mm_trace.Attribute)
	inspectFuncAddAttributes   func(attributes ...mm_trace.Attribute)
	afterAddAttributesCounter  uint64
	beforeAddAttributesCounter uint64
	AddAttributesMock          mSpanInterfaceMockAddAttributes
	funcAddLink          func(l mm_trace.Link)
	inspectFuncAddLink   func(l mm_trace.Link)
	afterAddLinkCounter  uint64
	beforeAddLinkCounter uint64
	AddLinkMock          mSpanInterfaceMockAddLink
	funcAddMessageReceiveEvent          func(messageID int64, uncompressedByteSize int64, compressedByteSize int64)
	inspectFuncAddMessageReceiveEvent   func(messageID int64, uncompressedByteSize int64, compressedByteSize int64)
	afterAddMessageReceiveEventCounter  uint64
	beforeAddMessageReceiveEventCounter uint64
	AddMessageReceiveEventMock          mSpanInterfaceMockAddMessageReceiveEvent
	funcAddMessageSendEvent          func(messageID int64, uncompressedByteSize int64, compressedByteSize int64)
	inspectFuncAddMessageSendEvent   func(messageID int64, uncompressedByteSize int64, compressedByteSize int64)
	afterAddMessageSendEventCounter  uint64
	beforeAddMessageSendEventCounter uint64
	AddMessageSendEventMock          mSpanInterfaceMockAddMessageSendEvent
	funcAnnotate          func(attributes []mm_trace.Attribute, str string)
	inspectFuncAnnotate   func(attributes []mm_trace.Attribute, str string)
	afterAnnotateCounter  uint64
	beforeAnnotateCounter uint64
	AnnotateMock          mSpanInterfaceMockAnnotate
	funcAnnotatef          func(attributes []mm_trace.Attribute, format string, a ...interface{})
	inspectFuncAnnotatef   func(attributes []mm_trace.Attribute, format string, a ...interface{})
	afterAnnotatefCounter  uint64
	beforeAnnotatefCounter uint64
	AnnotatefMock          mSpanInterfaceMockAnnotatef
	funcEnd          func()
	inspectFuncEnd   func()
	afterEndCounter  uint64
	beforeEndCounter uint64
	EndMock          mSpanInterfaceMockEnd
	funcIsRecordingEvents          func() (b1 bool)
	inspectFuncIsRecordingEvents   func()
	afterIsRecordingEventsCounter  uint64
	beforeIsRecordingEventsCounter uint64
	IsRecordingEventsMock          mSpanInterfaceMockIsRecordingEvents
	funcSetName          func(name string)
	inspectFuncSetName   func(name string)
	afterSetNameCounter  uint64
	beforeSetNameCounter uint64
	SetNameMock          mSpanInterfaceMockSetName
	funcSetStatus          func(status mm_trace.Status)
	inspectFuncSetStatus   func(status mm_trace.Status)
	afterSetStatusCounter  uint64
	beforeSetStatusCounter uint64
	SetStatusMock          mSpanInterfaceMockSetStatus
	funcSpanContext          func() (s1 mm_trace.SpanContext)
	inspectFuncSpanContext   func()
	afterSpanContextCounter  uint64
	beforeSpanContextCounter uint64
	SpanContextMock          mSpanInterfaceMockSpanContext
	funcString          func() (s1 string)
	inspectFuncString   func()
	afterStringCounter  uint64
	beforeStringCounter uint64
	StringMock          mSpanInterfaceMockString
}
func NewSpanInterfaceMock(t minimock.Tester) *SpanInterfaceMock {
	m := &SpanInterfaceMock{t: t}
	if controller, ok := t.(minimock.MockController); ok {
		controller.RegisterMocker(m)
	}
	m.AddAttributesMock = mSpanInterfaceMockAddAttributes{mock: m}
	m.AddAttributesMock.callArgs = []*SpanInterfaceMockAddAttributesParams{}
	m.AddLinkMock = mSpanInterfaceMockAddLink{mock: m}
	m.AddLinkMock.callArgs = []*SpanInterfaceMockAddLinkParams{}
	m.AddMessageReceiveEventMock = mSpanInterfaceMockAddMessageReceiveEvent{mock: m}
	m.AddMessageReceiveEventMock.callArgs = []*SpanInterfaceMockAddMessageReceiveEventParams{}
	m.AddMessageSendEventMock = mSpanInterfaceMockAddMessageSendEvent{mock: m}
	m.AddMessageSendEventMock.callArgs = []*SpanInterfaceMockAddMessageSendEventParams{}
	m.AnnotateMock = mSpanInterfaceMockAnnotate{mock: m}
	m.AnnotateMock.callArgs = []*SpanInterfaceMockAnnotateParams{}
	m.AnnotatefMock = mSpanInterfaceMockAnnotatef{mock: m}
	m.AnnotatefMock.callArgs = []*SpanInterfaceMockAnnotatefParams{}
	m.EndMock = mSpanInterfaceMockEnd{mock: m}
	m.IsRecordingEventsMock = mSpanInterfaceMockIsRecordingEvents{mock: m}
	m.SetNameMock = mSpanInterfaceMockSetName{mock: m}
	m.SetNameMock.callArgs = []*SpanInterfaceMockSetNameParams{}
	m.SetStatusMock = mSpanInterfaceMockSetStatus{mock: m}
	m.SetStatusMock.callArgs = []*SpanInterfaceMockSetStatusParams{}
	m.SpanContextMock = mSpanInterfaceMockSpanContext{mock: m}
	m.StringMock = mSpanInterfaceMockString{mock: m}
	return m
}
type mSpanInterfaceMockAddAttributes struct {
	mock               *SpanInterfaceMock
	defaultExpectation *SpanInterfaceMockAddAttributesExpectation
	expectations       []*SpanInterfaceMockAddAttributesExpectation
	callArgs []*SpanInterfaceMockAddAttributesParams
	mutex    sync.RWMutex
}
type SpanInterfaceMockAddAttributesExpectation struct {
	mock   *SpanInterfaceMock
	params *SpanInterfaceMockAddAttributesParams
	Counter uint64
}
type SpanInterfaceMockAddAttributesParams struct {
	attributes []mm_trace.Attribute
}