ci: generate mock (#1977)

main
junwen-lee 2 months ago committed by GitHub
parent a85a8fc516
commit 6c8dd3a44c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 31
      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()

Loading…
Cancel
Save