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

Method CreateBundle

src/service/bundle_service_test.go:136–142  ·  view source on GitHub ↗
(ctx context.Context, bundle *model.Bundle)

Source from the content-addressed store, hash-verified

134}
135
136func (m *MockBundleRepository) CreateBundle(ctx context.Context, bundle *model.Bundle) (*model.Bundle, error) {
137 args := m.Called(ctx, bundle)
138 if args.Get(0) == nil {
139 return nil, args.Error(1)
140 }
141 return args.Get(0).(*model.Bundle), args.Error(1)
142}
143
144func (m *MockBundleRepository) GetById(ctx context.Context, id primitive.ObjectID) (*model.Bundle, error) {
145 args := m.Called(ctx, id)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected