func (mmFromContext *mTracerOpenCensusMockFromContext) Expect(ctx context.Context) *mTracerOpenCensusMockFromContext {
	if mmFromContext.mock.funcFromContext != nil {
		mmFromContext.mock.t.Fatalf("TracerOpenCensusMock.FromContext mock is already set by Set")
	}
	if mmFromContext.defaultExpectation == nil {
		mmFromContext.defaultExpectation = &TracerOpenCensusMockFromContextExpectation{}
	}
	mmFromContext.defaultExpectation.params = &TracerOpenCensusMockFromContextParams{ctx}
	for _, e := range mmFromContext.expectations {
		if minimock.Equal(e.params, mmFromContext.defaultExpectation.params) {
			mmFromContext.mock.t.Fatalf("Expectation set by When has same params: %#v", *mmFromContext.defaultExpectation.params)
		}
	}
	return mmFromContext
}
Expect sets up expected params for Tracer.FromContext
package templatestests
import (
	"context"
	"sync"
	mm_atomic "sync/atomic"
	mm_time "time"
	"github.com/gojuno/minimock/v3"
	mm_trace "go.opencensus.io/trace"
)
type TracerOpenCensusMock struct {
	t minimock.Tester
	funcFromContext          func(ctx context.Context) (sp1 *mm_trace.Span)
	inspectFuncFromContext   func(ctx context.Context)
	afterFromContextCounter  uint64
	beforeFromContextCounter uint64
	FromContextMock          mTracerOpenCensusMockFromContext
	funcNewContext          func(ctx context.Context, s *mm_trace.Span) (c1 context.Context)
	inspectFuncNewContext   func(ctx context.Context, s *mm_trace.Span)
	afterNewContextCounter  uint64
	beforeNewContextCounter uint64
	NewContextMock          mTracerOpenCensusMockNewContext
	funcStartSpan          func(ctx context.Context, name string, o ...mm_trace.StartOption) (c2 context.Context, sp1 *mm_trace.Span)
	inspectFuncStartSpan   func(ctx context.Context, name string, o ...mm_trace.StartOption)
	afterStartSpanCounter  uint64
	beforeStartSpanCounter uint64
	StartSpanMock          mTracerOpenCensusMockStartSpan
	funcStartSpanWithRemoteParent          func(ctx context.Context, name string, parent mm_trace.SpanContext, o ...mm_trace.StartOption) (c2 context.Context, sp1 *mm_trace.Span)
	inspectFuncStartSpanWithRemoteParent   func(ctx context.Context, name string, parent mm_trace.SpanContext, o ...mm_trace.StartOption)
	afterStartSpanWithRemoteParentCounter  uint64
	beforeStartSpanWithRemoteParentCounter uint64
	StartSpanWithRemoteParentMock          mTracerOpenCensusMockStartSpanWithRemoteParent
}
func NewTracerOpenCensusMock(t minimock.Tester) *TracerOpenCensusMock {
	m := &TracerOpenCensusMock{t: t}
	if controller, ok := t.(minimock.MockController); ok {
		controller.RegisterMocker(m)
	}
	m.FromContextMock = mTracerOpenCensusMockFromContext{mock: m}
	m.FromContextMock.callArgs = []*TracerOpenCensusMockFromContextParams{}
	m.NewContextMock = mTracerOpenCensusMockNewContext{mock: m}
	m.NewContextMock.callArgs = []*TracerOpenCensusMockNewContextParams{}
	m.StartSpanMock = mTracerOpenCensusMockStartSpan{mock: m}
	m.StartSpanMock.callArgs = []*TracerOpenCensusMockStartSpanParams{}
	m.StartSpanWithRemoteParentMock = mTracerOpenCensusMockStartSpanWithRemoteParent{mock: m}
	m.StartSpanWithRemoteParentMock.callArgs = []*TracerOpenCensusMockStartSpanWithRemoteParentParams{}
	return m
}
type mTracerOpenCensusMockFromContext struct {
	mock               *TracerOpenCensusMock
	defaultExpectation *TracerOpenCensusMockFromContextExpectation
	expectations       []*TracerOpenCensusMockFromContextExpectation
	callArgs []*TracerOpenCensusMockFromContextParams
	mutex    sync.RWMutex
}
type TracerOpenCensusMockFromContextExpectation struct {
	mock    *TracerOpenCensusMock
	params  *TracerOpenCensusMockFromContextParams
	results *TracerOpenCensusMockFromContextResults
	Counter uint64
}
type TracerOpenCensusMockFromContextParams struct {
	ctx context.Context
}
type TracerOpenCensusMockFromContextResults struct {
	sp1 *mm_trace.Span
}