github.com/cloudwego/kitex@v0.9.0/internal/mocks/stats/tracer.go (about) 1 /* 2 * Copyright 2022 CloudWeGo Authors 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 18 // Code generated by MockGen. DO NOT EDIT. 19 // Source: ../../pkg/stats/tracer.go 20 21 // Package stats is a generated GoMock package. 22 package stats 23 24 import ( 25 context "context" 26 reflect "reflect" 27 28 gomock "github.com/golang/mock/gomock" 29 ) 30 31 // MockTracer is a mock of Tracer interface. 32 type MockTracer struct { 33 ctrl *gomock.Controller 34 recorder *MockTracerMockRecorder 35 } 36 37 // MockTracerMockRecorder is the mock recorder for MockTracer. 38 type MockTracerMockRecorder struct { 39 mock *MockTracer 40 } 41 42 // NewMockTracer creates a new mock instance. 43 func NewMockTracer(ctrl *gomock.Controller) *MockTracer { 44 mock := &MockTracer{ctrl: ctrl} 45 mock.recorder = &MockTracerMockRecorder{mock} 46 return mock 47 } 48 49 // EXPECT returns an object that allows the caller to indicate expected use. 50 func (m *MockTracer) EXPECT() *MockTracerMockRecorder { 51 return m.recorder 52 } 53 54 // Finish mocks base method. 55 func (m *MockTracer) Finish(ctx context.Context) { 56 m.ctrl.T.Helper() 57 m.ctrl.Call(m, "Finish", ctx) 58 } 59 60 // Finish indicates an expected call of Finish. 61 func (mr *MockTracerMockRecorder) Finish(ctx interface{}) *gomock.Call { 62 mr.mock.ctrl.T.Helper() 63 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Finish", reflect.TypeOf((*MockTracer)(nil).Finish), ctx) 64 } 65 66 // Start mocks base method. 67 func (m *MockTracer) Start(ctx context.Context) context.Context { 68 m.ctrl.T.Helper() 69 ret := m.ctrl.Call(m, "Start", ctx) 70 ret0, _ := ret[0].(context.Context) 71 return ret0 72 } 73 74 // Start indicates an expected call of Start. 75 func (mr *MockTracerMockRecorder) Start(ctx interface{}) *gomock.Call { 76 mr.mock.ctrl.T.Helper() 77 return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Start", reflect.TypeOf((*MockTracer)(nil).Start), ctx) 78 }