6bed393c12
Backend Tests / backend-unit-test (push) Has been cancelled
Backend Tests / benchmark-test (push) Has been cancelled
CI@main / Node.js v22 (ubuntu-latest) (push) Has been cancelled
Thrift Syntax Validation / validate-thrift (push) Has been cancelled
License Check / License Check (push) Has been cancelled
74 lines
2.2 KiB
Go
74 lines
2.2 KiB
Go
/*
|
|
* Copyright 2025 coze-dev Authors
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
|
|
// Code generated by MockGen. DO NOT EDIT.
|
|
// Source: upload.go
|
|
//
|
|
// Generated by this command:
|
|
//
|
|
// mockgen -destination uploadmock/upload_mock.go --package uploadmock -source upload.go
|
|
//
|
|
|
|
// Package uploadmock is a generated GoMock package.
|
|
package uploadmock
|
|
|
|
import (
|
|
context "context"
|
|
reflect "reflect"
|
|
|
|
service "github.com/coze-dev/coze-studio/backend/domain/upload/service"
|
|
gomock "go.uber.org/mock/gomock"
|
|
)
|
|
|
|
// MockUploader is a mock of Uploader interface.
|
|
type MockUploader struct {
|
|
ctrl *gomock.Controller
|
|
recorder *MockUploaderMockRecorder
|
|
isgomock struct{}
|
|
}
|
|
|
|
// MockUploaderMockRecorder is the mock recorder for MockUploader.
|
|
type MockUploaderMockRecorder struct {
|
|
mock *MockUploader
|
|
}
|
|
|
|
// NewMockUploader creates a new mock instance.
|
|
func NewMockUploader(ctrl *gomock.Controller) *MockUploader {
|
|
mock := &MockUploader{ctrl: ctrl}
|
|
mock.recorder = &MockUploaderMockRecorder{mock}
|
|
return mock
|
|
}
|
|
|
|
// EXPECT returns an object that allows the caller to indicate expected use.
|
|
func (m *MockUploader) EXPECT() *MockUploaderMockRecorder {
|
|
return m.recorder
|
|
}
|
|
|
|
// GetFile mocks base method.
|
|
func (m *MockUploader) GetFile(ctx context.Context, req *service.GetFileRequest) (*service.GetFileResponse, error) {
|
|
m.ctrl.T.Helper()
|
|
ret := m.ctrl.Call(m, "GetFile", ctx, req)
|
|
ret0, _ := ret[0].(*service.GetFileResponse)
|
|
ret1, _ := ret[1].(error)
|
|
return ret0, ret1
|
|
}
|
|
|
|
// GetFile indicates an expected call of GetFile.
|
|
func (mr *MockUploaderMockRecorder) GetFile(ctx, req any) *gomock.Call {
|
|
mr.mock.ctrl.T.Helper()
|
|
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetFile", reflect.TypeOf((*MockUploader)(nil).GetFile), ctx, req)
|
|
}
|