MCPcopy
hub / github.com/harness/harness / UploadFile

Method UploadFile

registry/app/pkg/python/local_helper_test.go:155–162  ·  view source on GitHub ↗
(
	ctx context.Context, info pkg.ArtifactInfo, filename, version, path string,
	file multipart.File,
	metadata metadata.Metadata,
)

Source from the content-addressed store, hash-verified

153}
154
155func (m *MockLocalBase) UploadFile(
156 ctx context.Context, info pkg.ArtifactInfo, filename, version, path string,
157 file multipart.File,
158 metadata metadata.Metadata,
159) (*commons.ResponseHeaders, string, error) {
160 args := m.Called(ctx, info, filename, version, path, file, metadata)
161 return args.Get(0).(*commons.ResponseHeaders), args.String(1), args.Error(2) //nolint:errcheck
162}
163
164func (m *MockLocalBase) MoveMultipleTempFilesAndCreateArtifact(
165 ctx context.Context,

Callers

nothing calls this directly

Calls 3

GetMethod · 0.65
ErrorMethod · 0.65
StringMethod · 0.45

Tested by

no test coverage detected