mocks

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AssetRepository

type AssetRepository struct {
	mock.Mock
}

AssetRepository is an autogenerated mock type for the Repository type

func NewAssetRepository

func NewAssetRepository(t mockConstructorTestingTNewAssetRepository) *AssetRepository

NewAssetRepository creates a new instance of AssetRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*AssetRepository) AddProbe

func (_m *AssetRepository) AddProbe(ctx context.Context, ns *namespace.Namespace, assetURN string, probe *asset.Probe) error

AddProbe provides a mock function with given fields: ctx, ns, assetURN, probe

func (*AssetRepository) DeleteByID

func (_m *AssetRepository) DeleteByID(ctx context.Context, id string) error

DeleteByID provides a mock function with given fields: ctx, id

func (*AssetRepository) DeleteByURN

func (_m *AssetRepository) DeleteByURN(ctx context.Context, urn string) error

DeleteByURN provides a mock function with given fields: ctx, urn

func (*AssetRepository) EXPECT

func (*AssetRepository) GetAll

func (_m *AssetRepository) GetAll(_a0 context.Context, _a1 asset.Filter) ([]asset.Asset, error)

GetAll provides a mock function with given fields: _a0, _a1

func (*AssetRepository) GetByID

func (_m *AssetRepository) GetByID(ctx context.Context, id string) (asset.Asset, error)

GetByID provides a mock function with given fields: ctx, id

func (*AssetRepository) GetByURN

func (_m *AssetRepository) GetByURN(ctx context.Context, urn string) (asset.Asset, error)

GetByURN provides a mock function with given fields: ctx, urn

func (*AssetRepository) GetByVersionWithID

func (_m *AssetRepository) GetByVersionWithID(ctx context.Context, id string, version string) (asset.Asset, error)

GetByVersionWithID provides a mock function with given fields: ctx, id, version

func (*AssetRepository) GetByVersionWithURN

func (_m *AssetRepository) GetByVersionWithURN(ctx context.Context, urn string, version string) (asset.Asset, error)

GetByVersionWithURN provides a mock function with given fields: ctx, urn, version

func (*AssetRepository) GetCount

func (_m *AssetRepository) GetCount(_a0 context.Context, _a1 asset.Filter) (int, error)

GetCount provides a mock function with given fields: _a0, _a1

func (*AssetRepository) GetProbes

func (_m *AssetRepository) GetProbes(ctx context.Context, assetURN string) ([]asset.Probe, error)

GetProbes provides a mock function with given fields: ctx, assetURN

func (*AssetRepository) GetProbesWithFilter

func (_m *AssetRepository) GetProbesWithFilter(ctx context.Context, flt asset.ProbesFilter) (map[string][]asset.Probe, error)

GetProbesWithFilter provides a mock function with given fields: ctx, flt

func (*AssetRepository) GetTypes

func (_m *AssetRepository) GetTypes(ctx context.Context, flt asset.Filter) (map[asset.Type]int, error)

GetTypes provides a mock function with given fields: ctx, flt

func (*AssetRepository) GetVersionHistory

func (_m *AssetRepository) GetVersionHistory(ctx context.Context, flt asset.Filter, id string) ([]asset.Asset, error)

GetVersionHistory provides a mock function with given fields: ctx, flt, id

func (*AssetRepository) Upsert

func (_m *AssetRepository) Upsert(ctx context.Context, ns *namespace.Namespace, ast *asset.Asset) (string, error)

Upsert provides a mock function with given fields: ctx, ns, ast

type AssetRepository_AddProbe_Call

type AssetRepository_AddProbe_Call struct {
	*mock.Call
}

AssetRepository_AddProbe_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AddProbe'

func (*AssetRepository_AddProbe_Call) Return

func (*AssetRepository_AddProbe_Call) Run

func (*AssetRepository_AddProbe_Call) RunAndReturn

type AssetRepository_DeleteByID_Call

type AssetRepository_DeleteByID_Call struct {
	*mock.Call
}

AssetRepository_DeleteByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteByID'

func (*AssetRepository_DeleteByID_Call) Return

func (*AssetRepository_DeleteByID_Call) Run

func (*AssetRepository_DeleteByID_Call) RunAndReturn

type AssetRepository_DeleteByURN_Call

type AssetRepository_DeleteByURN_Call struct {
	*mock.Call
}

AssetRepository_DeleteByURN_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteByURN'

func (*AssetRepository_DeleteByURN_Call) Return

func (*AssetRepository_DeleteByURN_Call) Run

func (*AssetRepository_DeleteByURN_Call) RunAndReturn

type AssetRepository_Expecter

type AssetRepository_Expecter struct {
	// contains filtered or unexported fields
}

func (*AssetRepository_Expecter) AddProbe

func (_e *AssetRepository_Expecter) AddProbe(ctx interface{}, ns interface{}, assetURN interface{}, probe interface{}) *AssetRepository_AddProbe_Call

AddProbe is a helper method to define mock.On call

  • ctx context.Context
  • ns *namespace.Namespace
  • assetURN string
  • probe *asset.Probe

func (*AssetRepository_Expecter) DeleteByID

func (_e *AssetRepository_Expecter) DeleteByID(ctx interface{}, id interface{}) *AssetRepository_DeleteByID_Call

DeleteByID is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*AssetRepository_Expecter) DeleteByURN

func (_e *AssetRepository_Expecter) DeleteByURN(ctx interface{}, urn interface{}) *AssetRepository_DeleteByURN_Call

DeleteByURN is a helper method to define mock.On call

  • ctx context.Context
  • urn string

func (*AssetRepository_Expecter) GetAll

func (_e *AssetRepository_Expecter) GetAll(_a0 interface{}, _a1 interface{}) *AssetRepository_GetAll_Call

GetAll is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 asset.Filter

func (*AssetRepository_Expecter) GetByID

func (_e *AssetRepository_Expecter) GetByID(ctx interface{}, id interface{}) *AssetRepository_GetByID_Call

GetByID is a helper method to define mock.On call

  • ctx context.Context
  • id string

func (*AssetRepository_Expecter) GetByURN

func (_e *AssetRepository_Expecter) GetByURN(ctx interface{}, urn interface{}) *AssetRepository_GetByURN_Call

GetByURN is a helper method to define mock.On call

  • ctx context.Context
  • urn string

func (*AssetRepository_Expecter) GetByVersionWithID

func (_e *AssetRepository_Expecter) GetByVersionWithID(ctx interface{}, id interface{}, version interface{}) *AssetRepository_GetByVersionWithID_Call

GetByVersionWithID is a helper method to define mock.On call

  • ctx context.Context
  • id string
  • version string

func (*AssetRepository_Expecter) GetByVersionWithURN

func (_e *AssetRepository_Expecter) GetByVersionWithURN(ctx interface{}, urn interface{}, version interface{}) *AssetRepository_GetByVersionWithURN_Call

GetByVersionWithURN is a helper method to define mock.On call

  • ctx context.Context
  • urn string
  • version string

func (*AssetRepository_Expecter) GetCount

func (_e *AssetRepository_Expecter) GetCount(_a0 interface{}, _a1 interface{}) *AssetRepository_GetCount_Call

GetCount is a helper method to define mock.On call

  • _a0 context.Context
  • _a1 asset.Filter

func (*AssetRepository_Expecter) GetProbes

func (_e *AssetRepository_Expecter) GetProbes(ctx interface{}, assetURN interface{}) *AssetRepository_GetProbes_Call

GetProbes is a helper method to define mock.On call

  • ctx context.Context
  • assetURN string

func (*AssetRepository_Expecter) GetProbesWithFilter

func (_e *AssetRepository_Expecter) GetProbesWithFilter(ctx interface{}, flt interface{}) *AssetRepository_GetProbesWithFilter_Call

GetProbesWithFilter is a helper method to define mock.On call

  • ctx context.Context
  • flt asset.ProbesFilter

func (*AssetRepository_Expecter) GetTypes

func (_e *AssetRepository_Expecter) GetTypes(ctx interface{}, flt interface{}) *AssetRepository_GetTypes_Call

GetTypes is a helper method to define mock.On call

  • ctx context.Context
  • flt asset.Filter

func (*AssetRepository_Expecter) GetVersionHistory

func (_e *AssetRepository_Expecter) GetVersionHistory(ctx interface{}, flt interface{}, id interface{}) *AssetRepository_GetVersionHistory_Call

GetVersionHistory is a helper method to define mock.On call

  • ctx context.Context
  • flt asset.Filter
  • id string

func (*AssetRepository_Expecter) Upsert

func (_e *AssetRepository_Expecter) Upsert(ctx interface{}, ns interface{}, ast interface{}) *AssetRepository_Upsert_Call

Upsert is a helper method to define mock.On call

  • ctx context.Context
  • ns *namespace.Namespace
  • ast *asset.Asset

type AssetRepository_GetAll_Call

type AssetRepository_GetAll_Call struct {
	*mock.Call
}

AssetRepository_GetAll_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAll'

func (*AssetRepository_GetAll_Call) Return

func (*AssetRepository_GetAll_Call) Run

func (*AssetRepository_GetAll_Call) RunAndReturn

type AssetRepository_GetByID_Call

type AssetRepository_GetByID_Call struct {
	*mock.Call
}

AssetRepository_GetByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByID'

func (*AssetRepository_GetByID_Call) Return

func (*AssetRepository_GetByID_Call) Run

func (*AssetRepository_GetByID_Call) RunAndReturn

type AssetRepository_GetByURN_Call

type AssetRepository_GetByURN_Call struct {
	*mock.Call
}

AssetRepository_GetByURN_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByURN'

func (*AssetRepository_GetByURN_Call) Return

func (*AssetRepository_GetByURN_Call) Run

func (*AssetRepository_GetByURN_Call) RunAndReturn

type AssetRepository_GetByVersionWithID_Call

type AssetRepository_GetByVersionWithID_Call struct {
	*mock.Call
}

AssetRepository_GetByVersionWithID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByVersionWithID'

func (*AssetRepository_GetByVersionWithID_Call) Return

func (*AssetRepository_GetByVersionWithID_Call) Run

func (*AssetRepository_GetByVersionWithID_Call) RunAndReturn

type AssetRepository_GetByVersionWithURN_Call

type AssetRepository_GetByVersionWithURN_Call struct {
	*mock.Call
}

AssetRepository_GetByVersionWithURN_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByVersionWithURN'

func (*AssetRepository_GetByVersionWithURN_Call) Return

func (*AssetRepository_GetByVersionWithURN_Call) Run

func (*AssetRepository_GetByVersionWithURN_Call) RunAndReturn

type AssetRepository_GetCount_Call

type AssetRepository_GetCount_Call struct {
	*mock.Call
}

AssetRepository_GetCount_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCount'

func (*AssetRepository_GetCount_Call) Return

func (*AssetRepository_GetCount_Call) Run

func (*AssetRepository_GetCount_Call) RunAndReturn

type AssetRepository_GetProbesWithFilter_Call

type AssetRepository_GetProbesWithFilter_Call struct {
	*mock.Call
}

AssetRepository_GetProbesWithFilter_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetProbesWithFilter'

func (*AssetRepository_GetProbesWithFilter_Call) Return

func (*AssetRepository_GetProbesWithFilter_Call) Run

func (*AssetRepository_GetProbesWithFilter_Call) RunAndReturn

type AssetRepository_GetProbes_Call

type AssetRepository_GetProbes_Call struct {
	*mock.Call
}

AssetRepository_GetProbes_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetProbes'

func (*AssetRepository_GetProbes_Call) Return

func (*AssetRepository_GetProbes_Call) Run

func (*AssetRepository_GetProbes_Call) RunAndReturn

type AssetRepository_GetTypes_Call

type AssetRepository_GetTypes_Call struct {
	*mock.Call
}

AssetRepository_GetTypes_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetTypes'

func (*AssetRepository_GetTypes_Call) Return

func (*AssetRepository_GetTypes_Call) Run

func (*AssetRepository_GetTypes_Call) RunAndReturn

type AssetRepository_GetVersionHistory_Call

type AssetRepository_GetVersionHistory_Call struct {
	*mock.Call
}

AssetRepository_GetVersionHistory_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetVersionHistory'

func (*AssetRepository_GetVersionHistory_Call) Return

func (*AssetRepository_GetVersionHistory_Call) Run

func (*AssetRepository_GetVersionHistory_Call) RunAndReturn

type AssetRepository_Upsert_Call

type AssetRepository_Upsert_Call struct {
	*mock.Call
}

AssetRepository_Upsert_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Upsert'

func (*AssetRepository_Upsert_Call) Return

func (*AssetRepository_Upsert_Call) Run

func (*AssetRepository_Upsert_Call) RunAndReturn

type DiscoveryRepository

type DiscoveryRepository struct {
	mock.Mock
}

DiscoveryRepository is an autogenerated mock type for the DiscoveryRepository type

func NewDiscoveryRepository

func NewDiscoveryRepository(t mockConstructorTestingTNewDiscoveryRepository) *DiscoveryRepository

NewDiscoveryRepository creates a new instance of DiscoveryRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*DiscoveryRepository) DeleteByID

func (_m *DiscoveryRepository) DeleteByID(ctx context.Context, ns *namespace.Namespace, assetID string) error

DeleteByID provides a mock function with given fields: ctx, ns, assetID

func (*DiscoveryRepository) DeleteByURN

func (_m *DiscoveryRepository) DeleteByURN(ctx context.Context, ns *namespace.Namespace, assetURN string) error

DeleteByURN provides a mock function with given fields: ctx, ns, assetURN

func (*DiscoveryRepository) EXPECT

func (*DiscoveryRepository) Search

Search provides a mock function with given fields: ctx, cfg

func (*DiscoveryRepository) Suggest

func (_m *DiscoveryRepository) Suggest(ctx context.Context, cfg asset.SearchConfig) ([]string, error)

Suggest provides a mock function with given fields: ctx, cfg

func (*DiscoveryRepository) Upsert

Upsert provides a mock function with given fields: ctx, ns, ast

type DiscoveryRepository_DeleteByID_Call

type DiscoveryRepository_DeleteByID_Call struct {
	*mock.Call
}

DiscoveryRepository_DeleteByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteByID'

func (*DiscoveryRepository_DeleteByID_Call) Return

func (*DiscoveryRepository_DeleteByID_Call) Run

func (*DiscoveryRepository_DeleteByID_Call) RunAndReturn

type DiscoveryRepository_DeleteByURN_Call

type DiscoveryRepository_DeleteByURN_Call struct {
	*mock.Call
}

DiscoveryRepository_DeleteByURN_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteByURN'

func (*DiscoveryRepository_DeleteByURN_Call) Return

func (*DiscoveryRepository_DeleteByURN_Call) Run

func (*DiscoveryRepository_DeleteByURN_Call) RunAndReturn

type DiscoveryRepository_Expecter

type DiscoveryRepository_Expecter struct {
	// contains filtered or unexported fields
}

func (*DiscoveryRepository_Expecter) DeleteByID

func (_e *DiscoveryRepository_Expecter) DeleteByID(ctx interface{}, ns interface{}, assetID interface{}) *DiscoveryRepository_DeleteByID_Call

DeleteByID is a helper method to define mock.On call

  • ctx context.Context
  • ns *namespace.Namespace
  • assetID string

func (*DiscoveryRepository_Expecter) DeleteByURN

func (_e *DiscoveryRepository_Expecter) DeleteByURN(ctx interface{}, ns interface{}, assetURN interface{}) *DiscoveryRepository_DeleteByURN_Call

DeleteByURN is a helper method to define mock.On call

  • ctx context.Context
  • ns *namespace.Namespace
  • assetURN string

func (*DiscoveryRepository_Expecter) Search

func (_e *DiscoveryRepository_Expecter) Search(ctx interface{}, cfg interface{}) *DiscoveryRepository_Search_Call

Search is a helper method to define mock.On call

  • ctx context.Context
  • cfg asset.SearchConfig

func (*DiscoveryRepository_Expecter) Suggest

func (_e *DiscoveryRepository_Expecter) Suggest(ctx interface{}, cfg interface{}) *DiscoveryRepository_Suggest_Call

Suggest is a helper method to define mock.On call

  • ctx context.Context
  • cfg asset.SearchConfig

func (*DiscoveryRepository_Expecter) Upsert

func (_e *DiscoveryRepository_Expecter) Upsert(ctx interface{}, ns interface{}, ast interface{}) *DiscoveryRepository_Upsert_Call

Upsert is a helper method to define mock.On call

  • ctx context.Context
  • ns *namespace.Namespace
  • ast *asset.Asset

type DiscoveryRepository_Search_Call

type DiscoveryRepository_Search_Call struct {
	*mock.Call
}

DiscoveryRepository_Search_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Search'

func (*DiscoveryRepository_Search_Call) Return

func (*DiscoveryRepository_Search_Call) Run

func (*DiscoveryRepository_Search_Call) RunAndReturn

type DiscoveryRepository_Suggest_Call

type DiscoveryRepository_Suggest_Call struct {
	*mock.Call
}

DiscoveryRepository_Suggest_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Suggest'

func (*DiscoveryRepository_Suggest_Call) Return

func (*DiscoveryRepository_Suggest_Call) Run

func (*DiscoveryRepository_Suggest_Call) RunAndReturn

type DiscoveryRepository_Upsert_Call

type DiscoveryRepository_Upsert_Call struct {
	*mock.Call
}

DiscoveryRepository_Upsert_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Upsert'

func (*DiscoveryRepository_Upsert_Call) Return

func (*DiscoveryRepository_Upsert_Call) Run

func (*DiscoveryRepository_Upsert_Call) RunAndReturn

type LineageRepository

type LineageRepository struct {
	mock.Mock
}

LineageRepository is an autogenerated mock type for the LineageRepository type

func NewLineageRepository

func NewLineageRepository(t mockConstructorTestingTNewLineageRepository) *LineageRepository

NewLineageRepository creates a new instance of LineageRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*LineageRepository) DeleteByURN

func (_m *LineageRepository) DeleteByURN(ctx context.Context, urn string) error

DeleteByURN provides a mock function with given fields: ctx, urn

func (*LineageRepository) EXPECT

func (*LineageRepository) GetGraph

GetGraph provides a mock function with given fields: ctx, urn, query

func (*LineageRepository) Upsert

func (_m *LineageRepository) Upsert(ctx context.Context, ns *namespace.Namespace, urn string, upstreams []string, downstreams []string) error

Upsert provides a mock function with given fields: ctx, ns, urn, upstreams, downstreams

type LineageRepository_DeleteByURN_Call

type LineageRepository_DeleteByURN_Call struct {
	*mock.Call
}

LineageRepository_DeleteByURN_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteByURN'

func (*LineageRepository_DeleteByURN_Call) Return

func (*LineageRepository_DeleteByURN_Call) Run

type LineageRepository_Expecter

type LineageRepository_Expecter struct {
	// contains filtered or unexported fields
}

func (*LineageRepository_Expecter) DeleteByURN

func (_e *LineageRepository_Expecter) DeleteByURN(ctx interface{}, urn interface{}) *LineageRepository_DeleteByURN_Call

DeleteByURN is a helper method to define mock.On call

  • ctx context.Context
  • urn string

func (*LineageRepository_Expecter) GetGraph

func (_e *LineageRepository_Expecter) GetGraph(ctx interface{}, urn interface{}, query interface{}) *LineageRepository_GetGraph_Call

GetGraph is a helper method to define mock.On call

  • ctx context.Context
  • urn string
  • query asset.LineageQuery

func (*LineageRepository_Expecter) Upsert

func (_e *LineageRepository_Expecter) Upsert(ctx interface{}, ns interface{}, urn interface{}, upstreams interface{}, downstreams interface{}) *LineageRepository_Upsert_Call

Upsert is a helper method to define mock.On call

  • ctx context.Context
  • ns *namespace.Namespace
  • urn string
  • upstreams []string
  • downstreams []string

type LineageRepository_GetGraph_Call

type LineageRepository_GetGraph_Call struct {
	*mock.Call
}

LineageRepository_GetGraph_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetGraph'

func (*LineageRepository_GetGraph_Call) Return

func (*LineageRepository_GetGraph_Call) Run

func (*LineageRepository_GetGraph_Call) RunAndReturn

type LineageRepository_Upsert_Call

type LineageRepository_Upsert_Call struct {
	*mock.Call
}

LineageRepository_Upsert_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Upsert'

func (*LineageRepository_Upsert_Call) Return

func (*LineageRepository_Upsert_Call) Run

func (_c *LineageRepository_Upsert_Call) Run(run func(ctx context.Context, ns *namespace.Namespace, urn string, upstreams []string, downstreams []string)) *LineageRepository_Upsert_Call

func (*LineageRepository_Upsert_Call) RunAndReturn

Jump to

Keyboard shortcuts

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