package mocks

import (
	"context"

	"github.com/bassosimone/oonidsl/internal/model"
)

// Submitter mocks model.Submitter.
type Submitter struct {
	MockSubmit func(ctx context.Context, m *model.Measurement) error
}

// Submit calls MockSubmit
func (s *Submitter) Submit(ctx context.Context, m *model.Measurement) error {
	return s.MockSubmit(ctx, m)
}
