MCPcopy Create free account
hub / github.com/SwishHQ/spread / CreateVersion

Method CreateVersion

src/service/bundle_service_test.go:22–28  ·  view source on GitHub ↗
(ctx context.Context, version *model.Version)

Source from the content-addressed store, hash-verified

20}
21
22func (m *MockVersionService) CreateVersion(ctx context.Context, version *model.Version) (*model.Version, error) {
23 args := m.Called(ctx, version)
24 if args.Get(0) == nil {
25 return nil, args.Error(1)
26 }
27 return args.Get(0).(*model.Version), args.Error(1)
28}
29
30func (m *MockVersionService) UpdateVersionCurrentBundleIdByVersionId(ctx context.Context, id primitive.ObjectID, currentBundleId primitive.ObjectID) (*model.Version, error) {
31 args := m.Called(ctx, id, currentBundleId)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected