storetest

package
v1.20.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 7, 2020 License: MIT Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StorerMock

type StorerMock struct {
	// AddDimensionToInstanceFunc mocks the AddDimensionToInstance method.
	AddDimensionToInstanceFunc func(dimension *models.CachedDimensionOption) error

	// AddEventToInstanceFunc mocks the AddEventToInstance method.
	AddEventToInstanceFunc func(instanceID string, event *models.Event) error

	// AddInstanceFunc mocks the AddInstance method.
	AddInstanceFunc func(instance *models.Instance) (*models.Instance, error)

	// AddVersionDetailsToInstanceFunc mocks the AddVersionDetailsToInstance method.
	AddVersionDetailsToInstanceFunc func(ctx context.Context, instanceID string, datasetID string, edition string, version int) error

	// CheckDatasetExistsFunc mocks the CheckDatasetExists method.
	CheckDatasetExistsFunc func(ID string, state string) error

	// CheckEditionExistsFunc mocks the CheckEditionExists method.
	CheckEditionExistsFunc func(ID string, editionID string, state string) error

	// DeleteDatasetFunc mocks the DeleteDataset method.
	DeleteDatasetFunc func(ID string) error

	// DeleteEditionFunc mocks the DeleteEdition method.
	DeleteEditionFunc func(ID string) error

	// GetDatasetFunc mocks the GetDataset method.
	GetDatasetFunc func(ID string) (*models.DatasetUpdate, error)

	// GetDatasetsFunc mocks the GetDatasets method.
	GetDatasetsFunc func(ctx context.Context) ([]models.DatasetUpdate, error)

	// GetDimensionOptionsFunc mocks the GetDimensionOptions method.
	GetDimensionOptionsFunc func(version *models.Version, dimension string) (*models.DimensionOptionResults, error)

	// GetDimensionsFunc mocks the GetDimensions method.
	GetDimensionsFunc func(datasetID string, versionID string) ([]bson.M, error)

	// GetDimensionsFromInstanceFunc mocks the GetDimensionsFromInstance method.
	GetDimensionsFromInstanceFunc func(ID string) (*models.DimensionNodeResults, error)

	// GetEditionFunc mocks the GetEdition method.
	GetEditionFunc func(ID string, editionID string, state string) (*models.EditionUpdate, error)

	// GetEditionsFunc mocks the GetEditions method.
	GetEditionsFunc func(ctx context.Context, ID string, state string) (*models.EditionUpdateResults, error)

	// GetInstanceFunc mocks the GetInstance method.
	GetInstanceFunc func(ID string) (*models.Instance, error)

	// GetInstancesFunc mocks the GetInstances method.
	GetInstancesFunc func(ctx context.Context, states []string, datasets []string) (*models.InstanceResults, error)

	// GetNextVersionFunc mocks the GetNextVersion method.
	GetNextVersionFunc func(datasetID string, editionID string) (int, error)

	// GetUniqueDimensionAndOptionsFunc mocks the GetUniqueDimensionAndOptions method.
	GetUniqueDimensionAndOptionsFunc func(ID string, dimension string) (*models.DimensionValues, error)

	// GetVersionFunc mocks the GetVersion method.
	GetVersionFunc func(datasetID string, editionID string, version string, state string) (*models.Version, error)

	// GetVersionsFunc mocks the GetVersions method.
	GetVersionsFunc func(ctx context.Context, datasetID string, editionID string, state string) (*models.VersionResults, error)

	// SetInstanceIsPublishedFunc mocks the SetInstanceIsPublished method.
	SetInstanceIsPublishedFunc func(ctx context.Context, instanceID string) error

	// StreamCSVRowsFunc mocks the StreamCSVRows method.
	StreamCSVRowsFunc func(ctx context.Context, instanceID string, filterID string, filters *observation.DimensionFilters, limit *int) (observation.StreamRowReader, error)

	// UpdateBuildHierarchyTaskStateFunc mocks the UpdateBuildHierarchyTaskState method.
	UpdateBuildHierarchyTaskStateFunc func(id string, dimension string, state string) error

	// UpdateBuildSearchTaskStateFunc mocks the UpdateBuildSearchTaskState method.
	UpdateBuildSearchTaskStateFunc func(id string, dimension string, state string) error

	// UpdateDatasetFunc mocks the UpdateDataset method.
	UpdateDatasetFunc func(ctx context.Context, ID string, dataset *models.Dataset, currentState string) error

	// UpdateDatasetWithAssociationFunc mocks the UpdateDatasetWithAssociation method.
	UpdateDatasetWithAssociationFunc func(ID string, state string, version *models.Version) error

	// UpdateDimensionNodeIDFunc mocks the UpdateDimensionNodeID method.
	UpdateDimensionNodeIDFunc func(dimension *models.DimensionOption) error

	// UpdateImportObservationsTaskStateFunc mocks the UpdateImportObservationsTaskState method.
	UpdateImportObservationsTaskStateFunc func(id string, state string) error

	// UpdateInstanceFunc mocks the UpdateInstance method.
	UpdateInstanceFunc func(ctx context.Context, ID string, instance *models.Instance) error

	// UpdateObservationInsertedFunc mocks the UpdateObservationInserted method.
	UpdateObservationInsertedFunc func(ID string, observationInserted int64) error

	// UpdateVersionFunc mocks the UpdateVersion method.
	UpdateVersionFunc func(ID string, version *models.Version) error

	// UpsertContactFunc mocks the UpsertContact method.
	UpsertContactFunc func(ID string, update interface{}) error

	// UpsertDatasetFunc mocks the UpsertDataset method.
	UpsertDatasetFunc func(ID string, datasetDoc *models.DatasetUpdate) error

	// UpsertEditionFunc mocks the UpsertEdition method.
	UpsertEditionFunc func(datasetID string, edition string, editionDoc *models.EditionUpdate) error

	// UpsertVersionFunc mocks the UpsertVersion method.
	UpsertVersionFunc func(ID string, versionDoc *models.Version) error
	// contains filtered or unexported fields
}

StorerMock is a mock implementation of store.Storer.

    func TestSomethingThatUsesStorer(t *testing.T) {

        // make and configure a mocked store.Storer
        mockedStorer := &StorerMock{
            AddDimensionToInstanceFunc: func(dimension *models.CachedDimensionOption) error {
	               panic("mock out the AddDimensionToInstance method")
            },
            AddEventToInstanceFunc: func(instanceID string, event *models.Event) error {
	               panic("mock out the AddEventToInstance method")
            },
            AddInstanceFunc: func(instance *models.Instance) (*models.Instance, error) {
	               panic("mock out the AddInstance method")
            },
            AddVersionDetailsToInstanceFunc: func(ctx context.Context, instanceID string, datasetID string, edition string, version int) error {
	               panic("mock out the AddVersionDetailsToInstance method")
            },
            CheckDatasetExistsFunc: func(ID string, state string) error {
	               panic("mock out the CheckDatasetExists method")
            },
            CheckEditionExistsFunc: func(ID string, editionID string, state string) error {
	               panic("mock out the CheckEditionExists method")
            },
            DeleteDatasetFunc: func(ID string) error {
	               panic("mock out the DeleteDataset method")
            },
            DeleteEditionFunc: func(ID string) error {
	               panic("mock out the DeleteEdition method")
            },
            GetDatasetFunc: func(ID string) (*models.DatasetUpdate, error) {
	               panic("mock out the GetDataset method")
            },
            GetDatasetsFunc: func(ctx context.Context) ([]models.DatasetUpdate, error) {
	               panic("mock out the GetDatasets method")
            },
            GetDimensionOptionsFunc: func(version *models.Version, dimension string) (*models.DimensionOptionResults, error) {
	               panic("mock out the GetDimensionOptions method")
            },
            GetDimensionsFunc: func(datasetID string, versionID string) ([]bson.M, error) {
	               panic("mock out the GetDimensions method")
            },
            GetDimensionsFromInstanceFunc: func(ID string) (*models.DimensionNodeResults, error) {
	               panic("mock out the GetDimensionsFromInstance method")
            },
            GetEditionFunc: func(ID string, editionID string, state string) (*models.EditionUpdate, error) {
	               panic("mock out the GetEdition method")
            },
            GetEditionsFunc: func(ctx context.Context, ID string, state string) (*models.EditionUpdateResults, error) {
	               panic("mock out the GetEditions method")
            },
            GetInstanceFunc: func(ID string) (*models.Instance, error) {
	               panic("mock out the GetInstance method")
            },
            GetInstancesFunc: func(ctx context.Context, states []string, datasets []string) (*models.InstanceResults, error) {
	               panic("mock out the GetInstances method")
            },
            GetNextVersionFunc: func(datasetID string, editionID string) (int, error) {
	               panic("mock out the GetNextVersion method")
            },
            GetUniqueDimensionAndOptionsFunc: func(ID string, dimension string) (*models.DimensionValues, error) {
	               panic("mock out the GetUniqueDimensionAndOptions method")
            },
            GetVersionFunc: func(datasetID string, editionID string, version string, state string) (*models.Version, error) {
	               panic("mock out the GetVersion method")
            },
            GetVersionsFunc: func(ctx context.Context, datasetID string, editionID string, state string) (*models.VersionResults, error) {
	               panic("mock out the GetVersions method")
            },
            SetInstanceIsPublishedFunc: func(ctx context.Context, instanceID string) error {
	               panic("mock out the SetInstanceIsPublished method")
            },
            StreamCSVRowsFunc: func(ctx context.Context, instanceID string, filterID string, filters *observation.DimensionFilters, limit *int) (observation.StreamRowReader, error) {
	               panic("mock out the StreamCSVRows method")
            },
            UpdateBuildHierarchyTaskStateFunc: func(id string, dimension string, state string) error {
	               panic("mock out the UpdateBuildHierarchyTaskState method")
            },
            UpdateBuildSearchTaskStateFunc: func(id string, dimension string, state string) error {
	               panic("mock out the UpdateBuildSearchTaskState method")
            },
            UpdateDatasetFunc: func(ctx context.Context, ID string, dataset *models.Dataset, currentState string) error {
	               panic("mock out the UpdateDataset method")
            },
            UpdateDatasetWithAssociationFunc: func(ID string, state string, version *models.Version) error {
	               panic("mock out the UpdateDatasetWithAssociation method")
            },
            UpdateDimensionNodeIDFunc: func(dimension *models.DimensionOption) error {
	               panic("mock out the UpdateDimensionNodeID method")
            },
            UpdateImportObservationsTaskStateFunc: func(id string, state string) error {
	               panic("mock out the UpdateImportObservationsTaskState method")
            },
            UpdateInstanceFunc: func(ctx context.Context, ID string, instance *models.Instance) error {
	               panic("mock out the UpdateInstance method")
            },
            UpdateObservationInsertedFunc: func(ID string, observationInserted int64) error {
	               panic("mock out the UpdateObservationInserted method")
            },
            UpdateVersionFunc: func(ID string, version *models.Version) error {
	               panic("mock out the UpdateVersion method")
            },
            UpsertContactFunc: func(ID string, update interface{}) error {
	               panic("mock out the UpsertContact method")
            },
            UpsertDatasetFunc: func(ID string, datasetDoc *models.DatasetUpdate) error {
	               panic("mock out the UpsertDataset method")
            },
            UpsertEditionFunc: func(datasetID string, edition string, editionDoc *models.EditionUpdate) error {
	               panic("mock out the UpsertEdition method")
            },
            UpsertVersionFunc: func(ID string, versionDoc *models.Version) error {
	               panic("mock out the UpsertVersion method")
            },
        }

        // use mockedStorer in code that requires store.Storer
        // and then make assertions.

    }

func (*StorerMock) AddDimensionToInstance

func (mock *StorerMock) AddDimensionToInstance(dimension *models.CachedDimensionOption) error

AddDimensionToInstance calls AddDimensionToInstanceFunc.

func (*StorerMock) AddDimensionToInstanceCalls

func (mock *StorerMock) AddDimensionToInstanceCalls() []struct {
	Dimension *models.CachedDimensionOption
}

AddDimensionToInstanceCalls gets all the calls that were made to AddDimensionToInstance. Check the length with:

len(mockedStorer.AddDimensionToInstanceCalls())

func (*StorerMock) AddEventToInstance

func (mock *StorerMock) AddEventToInstance(instanceID string, event *models.Event) error

AddEventToInstance calls AddEventToInstanceFunc.

func (*StorerMock) AddEventToInstanceCalls

func (mock *StorerMock) AddEventToInstanceCalls() []struct {
	InstanceID string
	Event      *models.Event
}

AddEventToInstanceCalls gets all the calls that were made to AddEventToInstance. Check the length with:

len(mockedStorer.AddEventToInstanceCalls())

func (*StorerMock) AddInstance

func (mock *StorerMock) AddInstance(instance *models.Instance) (*models.Instance, error)

AddInstance calls AddInstanceFunc.

func (*StorerMock) AddInstanceCalls

func (mock *StorerMock) AddInstanceCalls() []struct {
	Instance *models.Instance
}

AddInstanceCalls gets all the calls that were made to AddInstance. Check the length with:

len(mockedStorer.AddInstanceCalls())

func (*StorerMock) AddVersionDetailsToInstance

func (mock *StorerMock) AddVersionDetailsToInstance(ctx context.Context, instanceID string, datasetID string, edition string, version int) error

AddVersionDetailsToInstance calls AddVersionDetailsToInstanceFunc.

func (*StorerMock) AddVersionDetailsToInstanceCalls

func (mock *StorerMock) AddVersionDetailsToInstanceCalls() []struct {
	Ctx        context.Context
	InstanceID string
	DatasetID  string
	Edition    string
	Version    int
}

AddVersionDetailsToInstanceCalls gets all the calls that were made to AddVersionDetailsToInstance. Check the length with:

len(mockedStorer.AddVersionDetailsToInstanceCalls())

func (*StorerMock) CheckDatasetExists

func (mock *StorerMock) CheckDatasetExists(ID string, state string) error

CheckDatasetExists calls CheckDatasetExistsFunc.

func (*StorerMock) CheckDatasetExistsCalls

func (mock *StorerMock) CheckDatasetExistsCalls() []struct {
	ID    string
	State string
}

CheckDatasetExistsCalls gets all the calls that were made to CheckDatasetExists. Check the length with:

len(mockedStorer.CheckDatasetExistsCalls())

func (*StorerMock) CheckEditionExists

func (mock *StorerMock) CheckEditionExists(ID string, editionID string, state string) error

CheckEditionExists calls CheckEditionExistsFunc.

func (*StorerMock) CheckEditionExistsCalls

func (mock *StorerMock) CheckEditionExistsCalls() []struct {
	ID        string
	EditionID string
	State     string
}

CheckEditionExistsCalls gets all the calls that were made to CheckEditionExists. Check the length with:

len(mockedStorer.CheckEditionExistsCalls())

func (*StorerMock) DeleteDataset

func (mock *StorerMock) DeleteDataset(ID string) error

DeleteDataset calls DeleteDatasetFunc.

func (*StorerMock) DeleteDatasetCalls

func (mock *StorerMock) DeleteDatasetCalls() []struct {
	ID string
}

DeleteDatasetCalls gets all the calls that were made to DeleteDataset. Check the length with:

len(mockedStorer.DeleteDatasetCalls())

func (*StorerMock) DeleteEdition

func (mock *StorerMock) DeleteEdition(ID string) error

DeleteEdition calls DeleteEditionFunc.

func (*StorerMock) DeleteEditionCalls

func (mock *StorerMock) DeleteEditionCalls() []struct {
	ID string
}

DeleteEditionCalls gets all the calls that were made to DeleteEdition. Check the length with:

len(mockedStorer.DeleteEditionCalls())

func (*StorerMock) GetDataset

func (mock *StorerMock) GetDataset(ID string) (*models.DatasetUpdate, error)

GetDataset calls GetDatasetFunc.

func (*StorerMock) GetDatasetCalls

func (mock *StorerMock) GetDatasetCalls() []struct {
	ID string
}

GetDatasetCalls gets all the calls that were made to GetDataset. Check the length with:

len(mockedStorer.GetDatasetCalls())

func (*StorerMock) GetDatasets

func (mock *StorerMock) GetDatasets(ctx context.Context) ([]models.DatasetUpdate, error)

GetDatasets calls GetDatasetsFunc.

func (*StorerMock) GetDatasetsCalls

func (mock *StorerMock) GetDatasetsCalls() []struct {
	Ctx context.Context
}

GetDatasetsCalls gets all the calls that were made to GetDatasets. Check the length with:

len(mockedStorer.GetDatasetsCalls())

func (*StorerMock) GetDimensionOptions

func (mock *StorerMock) GetDimensionOptions(version *models.Version, dimension string) (*models.DimensionOptionResults, error)

GetDimensionOptions calls GetDimensionOptionsFunc.

func (*StorerMock) GetDimensionOptionsCalls

func (mock *StorerMock) GetDimensionOptionsCalls() []struct {
	Version   *models.Version
	Dimension string
}

GetDimensionOptionsCalls gets all the calls that were made to GetDimensionOptions. Check the length with:

len(mockedStorer.GetDimensionOptionsCalls())

func (*StorerMock) GetDimensions

func (mock *StorerMock) GetDimensions(datasetID string, versionID string) ([]bson.M, error)

GetDimensions calls GetDimensionsFunc.

func (*StorerMock) GetDimensionsCalls

func (mock *StorerMock) GetDimensionsCalls() []struct {
	DatasetID string
	VersionID string
}

GetDimensionsCalls gets all the calls that were made to GetDimensions. Check the length with:

len(mockedStorer.GetDimensionsCalls())

func (*StorerMock) GetDimensionsFromInstance

func (mock *StorerMock) GetDimensionsFromInstance(ID string) (*models.DimensionNodeResults, error)

GetDimensionsFromInstance calls GetDimensionsFromInstanceFunc.

func (*StorerMock) GetDimensionsFromInstanceCalls

func (mock *StorerMock) GetDimensionsFromInstanceCalls() []struct {
	ID string
}

GetDimensionsFromInstanceCalls gets all the calls that were made to GetDimensionsFromInstance. Check the length with:

len(mockedStorer.GetDimensionsFromInstanceCalls())

func (*StorerMock) GetEdition

func (mock *StorerMock) GetEdition(ID string, editionID string, state string) (*models.EditionUpdate, error)

GetEdition calls GetEditionFunc.

func (*StorerMock) GetEditionCalls

func (mock *StorerMock) GetEditionCalls() []struct {
	ID        string
	EditionID string
	State     string
}

GetEditionCalls gets all the calls that were made to GetEdition. Check the length with:

len(mockedStorer.GetEditionCalls())

func (*StorerMock) GetEditions

func (mock *StorerMock) GetEditions(ctx context.Context, ID string, state string) (*models.EditionUpdateResults, error)

GetEditions calls GetEditionsFunc.

func (*StorerMock) GetEditionsCalls

func (mock *StorerMock) GetEditionsCalls() []struct {
	Ctx   context.Context
	ID    string
	State string
}

GetEditionsCalls gets all the calls that were made to GetEditions. Check the length with:

len(mockedStorer.GetEditionsCalls())

func (*StorerMock) GetInstance

func (mock *StorerMock) GetInstance(ID string) (*models.Instance, error)

GetInstance calls GetInstanceFunc.

func (*StorerMock) GetInstanceCalls

func (mock *StorerMock) GetInstanceCalls() []struct {
	ID string
}

GetInstanceCalls gets all the calls that were made to GetInstance. Check the length with:

len(mockedStorer.GetInstanceCalls())

func (*StorerMock) GetInstances

func (mock *StorerMock) GetInstances(ctx context.Context, states []string, datasets []string) (*models.InstanceResults, error)

GetInstances calls GetInstancesFunc.

func (*StorerMock) GetInstancesCalls

func (mock *StorerMock) GetInstancesCalls() []struct {
	Ctx      context.Context
	States   []string
	Datasets []string
}

GetInstancesCalls gets all the calls that were made to GetInstances. Check the length with:

len(mockedStorer.GetInstancesCalls())

func (*StorerMock) GetNextVersion

func (mock *StorerMock) GetNextVersion(datasetID string, editionID string) (int, error)

GetNextVersion calls GetNextVersionFunc.

func (*StorerMock) GetNextVersionCalls

func (mock *StorerMock) GetNextVersionCalls() []struct {
	DatasetID string
	EditionID string
}

GetNextVersionCalls gets all the calls that were made to GetNextVersion. Check the length with:

len(mockedStorer.GetNextVersionCalls())

func (*StorerMock) GetUniqueDimensionAndOptions

func (mock *StorerMock) GetUniqueDimensionAndOptions(ID string, dimension string) (*models.DimensionValues, error)

GetUniqueDimensionAndOptions calls GetUniqueDimensionAndOptionsFunc.

func (*StorerMock) GetUniqueDimensionAndOptionsCalls

func (mock *StorerMock) GetUniqueDimensionAndOptionsCalls() []struct {
	ID        string
	Dimension string
}

GetUniqueDimensionAndOptionsCalls gets all the calls that were made to GetUniqueDimensionAndOptions. Check the length with:

len(mockedStorer.GetUniqueDimensionAndOptionsCalls())

func (*StorerMock) GetVersion

func (mock *StorerMock) GetVersion(datasetID string, editionID string, version string, state string) (*models.Version, error)

GetVersion calls GetVersionFunc.

func (*StorerMock) GetVersionCalls

func (mock *StorerMock) GetVersionCalls() []struct {
	DatasetID string
	EditionID string
	Version   string
	State     string
}

GetVersionCalls gets all the calls that were made to GetVersion. Check the length with:

len(mockedStorer.GetVersionCalls())

func (*StorerMock) GetVersions

func (mock *StorerMock) GetVersions(ctx context.Context, datasetID string, editionID string, state string) (*models.VersionResults, error)

GetVersions calls GetVersionsFunc.

func (*StorerMock) GetVersionsCalls

func (mock *StorerMock) GetVersionsCalls() []struct {
	Ctx       context.Context
	DatasetID string
	EditionID string
	State     string
}

GetVersionsCalls gets all the calls that were made to GetVersions. Check the length with:

len(mockedStorer.GetVersionsCalls())

func (*StorerMock) SetInstanceIsPublished

func (mock *StorerMock) SetInstanceIsPublished(ctx context.Context, instanceID string) error

SetInstanceIsPublished calls SetInstanceIsPublishedFunc.

func (*StorerMock) SetInstanceIsPublishedCalls

func (mock *StorerMock) SetInstanceIsPublishedCalls() []struct {
	Ctx        context.Context
	InstanceID string
}

SetInstanceIsPublishedCalls gets all the calls that were made to SetInstanceIsPublished. Check the length with:

len(mockedStorer.SetInstanceIsPublishedCalls())

func (*StorerMock) StreamCSVRows

func (mock *StorerMock) StreamCSVRows(ctx context.Context, instanceID string, filterID string, filters *observation.DimensionFilters, limit *int) (observation.StreamRowReader, error)

StreamCSVRows calls StreamCSVRowsFunc.

func (*StorerMock) StreamCSVRowsCalls

func (mock *StorerMock) StreamCSVRowsCalls() []struct {
	Ctx        context.Context
	InstanceID string
	FilterID   string
	Filters    *observation.DimensionFilters
	Limit      *int
}

StreamCSVRowsCalls gets all the calls that were made to StreamCSVRows. Check the length with:

len(mockedStorer.StreamCSVRowsCalls())

func (*StorerMock) UpdateBuildHierarchyTaskState

func (mock *StorerMock) UpdateBuildHierarchyTaskState(id string, dimension string, state string) error

UpdateBuildHierarchyTaskState calls UpdateBuildHierarchyTaskStateFunc.

func (*StorerMock) UpdateBuildHierarchyTaskStateCalls

func (mock *StorerMock) UpdateBuildHierarchyTaskStateCalls() []struct {
	ID        string
	Dimension string
	State     string
}

UpdateBuildHierarchyTaskStateCalls gets all the calls that were made to UpdateBuildHierarchyTaskState. Check the length with:

len(mockedStorer.UpdateBuildHierarchyTaskStateCalls())

func (*StorerMock) UpdateBuildSearchTaskState

func (mock *StorerMock) UpdateBuildSearchTaskState(id string, dimension string, state string) error

UpdateBuildSearchTaskState calls UpdateBuildSearchTaskStateFunc.

func (*StorerMock) UpdateBuildSearchTaskStateCalls

func (mock *StorerMock) UpdateBuildSearchTaskStateCalls() []struct {
	ID        string
	Dimension string
	State     string
}

UpdateBuildSearchTaskStateCalls gets all the calls that were made to UpdateBuildSearchTaskState. Check the length with:

len(mockedStorer.UpdateBuildSearchTaskStateCalls())

func (*StorerMock) UpdateDataset

func (mock *StorerMock) UpdateDataset(ctx context.Context, ID string, dataset *models.Dataset, currentState string) error

UpdateDataset calls UpdateDatasetFunc.

func (*StorerMock) UpdateDatasetCalls

func (mock *StorerMock) UpdateDatasetCalls() []struct {
	Ctx          context.Context
	ID           string
	Dataset      *models.Dataset
	CurrentState string
}

UpdateDatasetCalls gets all the calls that were made to UpdateDataset. Check the length with:

len(mockedStorer.UpdateDatasetCalls())

func (*StorerMock) UpdateDatasetWithAssociation

func (mock *StorerMock) UpdateDatasetWithAssociation(ID string, state string, version *models.Version) error

UpdateDatasetWithAssociation calls UpdateDatasetWithAssociationFunc.

func (*StorerMock) UpdateDatasetWithAssociationCalls

func (mock *StorerMock) UpdateDatasetWithAssociationCalls() []struct {
	ID      string
	State   string
	Version *models.Version
}

UpdateDatasetWithAssociationCalls gets all the calls that were made to UpdateDatasetWithAssociation. Check the length with:

len(mockedStorer.UpdateDatasetWithAssociationCalls())

func (*StorerMock) UpdateDimensionNodeID

func (mock *StorerMock) UpdateDimensionNodeID(dimension *models.DimensionOption) error

UpdateDimensionNodeID calls UpdateDimensionNodeIDFunc.

func (*StorerMock) UpdateDimensionNodeIDCalls

func (mock *StorerMock) UpdateDimensionNodeIDCalls() []struct {
	Dimension *models.DimensionOption
}

UpdateDimensionNodeIDCalls gets all the calls that were made to UpdateDimensionNodeID. Check the length with:

len(mockedStorer.UpdateDimensionNodeIDCalls())

func (*StorerMock) UpdateImportObservationsTaskState

func (mock *StorerMock) UpdateImportObservationsTaskState(id string, state string) error

UpdateImportObservationsTaskState calls UpdateImportObservationsTaskStateFunc.

func (*StorerMock) UpdateImportObservationsTaskStateCalls

func (mock *StorerMock) UpdateImportObservationsTaskStateCalls() []struct {
	ID    string
	State string
}

UpdateImportObservationsTaskStateCalls gets all the calls that were made to UpdateImportObservationsTaskState. Check the length with:

len(mockedStorer.UpdateImportObservationsTaskStateCalls())

func (*StorerMock) UpdateInstance

func (mock *StorerMock) UpdateInstance(ctx context.Context, ID string, instance *models.Instance) error

UpdateInstance calls UpdateInstanceFunc.

func (*StorerMock) UpdateInstanceCalls

func (mock *StorerMock) UpdateInstanceCalls() []struct {
	Ctx      context.Context
	ID       string
	Instance *models.Instance
}

UpdateInstanceCalls gets all the calls that were made to UpdateInstance. Check the length with:

len(mockedStorer.UpdateInstanceCalls())

func (*StorerMock) UpdateObservationInserted

func (mock *StorerMock) UpdateObservationInserted(ID string, observationInserted int64) error

UpdateObservationInserted calls UpdateObservationInsertedFunc.

func (*StorerMock) UpdateObservationInsertedCalls

func (mock *StorerMock) UpdateObservationInsertedCalls() []struct {
	ID                  string
	ObservationInserted int64
}

UpdateObservationInsertedCalls gets all the calls that were made to UpdateObservationInserted. Check the length with:

len(mockedStorer.UpdateObservationInsertedCalls())

func (*StorerMock) UpdateVersion

func (mock *StorerMock) UpdateVersion(ID string, version *models.Version) error

UpdateVersion calls UpdateVersionFunc.

func (*StorerMock) UpdateVersionCalls

func (mock *StorerMock) UpdateVersionCalls() []struct {
	ID      string
	Version *models.Version
}

UpdateVersionCalls gets all the calls that were made to UpdateVersion. Check the length with:

len(mockedStorer.UpdateVersionCalls())

func (*StorerMock) UpsertContact

func (mock *StorerMock) UpsertContact(ID string, update interface{}) error

UpsertContact calls UpsertContactFunc.

func (*StorerMock) UpsertContactCalls

func (mock *StorerMock) UpsertContactCalls() []struct {
	ID     string
	Update interface{}
}

UpsertContactCalls gets all the calls that were made to UpsertContact. Check the length with:

len(mockedStorer.UpsertContactCalls())

func (*StorerMock) UpsertDataset

func (mock *StorerMock) UpsertDataset(ID string, datasetDoc *models.DatasetUpdate) error

UpsertDataset calls UpsertDatasetFunc.

func (*StorerMock) UpsertDatasetCalls

func (mock *StorerMock) UpsertDatasetCalls() []struct {
	ID         string
	DatasetDoc *models.DatasetUpdate
}

UpsertDatasetCalls gets all the calls that were made to UpsertDataset. Check the length with:

len(mockedStorer.UpsertDatasetCalls())

func (*StorerMock) UpsertEdition

func (mock *StorerMock) UpsertEdition(datasetID string, edition string, editionDoc *models.EditionUpdate) error

UpsertEdition calls UpsertEditionFunc.

func (*StorerMock) UpsertEditionCalls

func (mock *StorerMock) UpsertEditionCalls() []struct {
	DatasetID  string
	Edition    string
	EditionDoc *models.EditionUpdate
}

UpsertEditionCalls gets all the calls that were made to UpsertEdition. Check the length with:

len(mockedStorer.UpsertEditionCalls())

func (*StorerMock) UpsertVersion

func (mock *StorerMock) UpsertVersion(ID string, versionDoc *models.Version) error

UpsertVersion calls UpsertVersionFunc.

func (*StorerMock) UpsertVersionCalls

func (mock *StorerMock) UpsertVersionCalls() []struct {
	ID         string
	VersionDoc *models.Version
}

UpsertVersionCalls gets all the calls that were made to UpsertVersion. Check the length with:

len(mockedStorer.UpsertVersionCalls())

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL