From 6c8dd3a44c5846fb322c7ad11fda9b739f26af01 Mon Sep 17 00:00:00 2001 From: junwen-lee Date: Tue, 2 Sep 2025 21:39:02 +0800 Subject: [PATCH] ci: generate mock (#1977) --- .../infra/contract/storage/storage_mock.go | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/backend/internal/mock/infra/contract/storage/storage_mock.go b/backend/internal/mock/infra/contract/storage/storage_mock.go index 6749e4c2..be3bf8fa 100644 --- a/backend/internal/mock/infra/contract/storage/storage_mock.go +++ b/backend/internal/mock/infra/contract/storage/storage_mock.go @@ -1,3 +1,19 @@ +/* + * 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: storage.go // @@ -91,6 +107,21 @@ func (mr *MockStorageMockRecorder) GetObjectUrl(ctx, objectKey any, opts ...any) return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetObjectUrl", reflect.TypeOf((*MockStorage)(nil).GetObjectUrl), varargs...) } +// HeadObject mocks base method. +func (m *MockStorage) HeadObject(ctx context.Context, objectKey string, withTagging bool) (*storage.FileInfo, error) { + m.ctrl.T.Helper() + ret := m.ctrl.Call(m, "HeadObject", ctx, objectKey, withTagging) + ret0, _ := ret[0].(*storage.FileInfo) + ret1, _ := ret[1].(error) + return ret0, ret1 +} + +// HeadObject indicates an expected call of HeadObject. +func (mr *MockStorageMockRecorder) HeadObject(ctx, objectKey, withTagging any) *gomock.Call { + mr.mock.ctrl.T.Helper() + return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "HeadObject", reflect.TypeOf((*MockStorage)(nil).HeadObject), ctx, objectKey, withTagging) +} + // ListAllObjects mocks base method. func (m *MockStorage) ListAllObjects(ctx context.Context, prefix string, withTagging bool) ([]*storage.FileInfo, error) { m.ctrl.T.Helper()