automock

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BundleLoader

type BundleLoader struct {
	mock.Mock
}

BundleLoader is an autogenerated mock type for the BundleLoader type

func (*BundleLoader) ExpectErrorOnLoad

func (mati *BundleLoader) ExpectErrorOnLoad(outErr error)

func (*BundleLoader) ExpectOnLoad

func (mati *BundleLoader) ExpectOnLoad(r io.Reader, outBundle *internal.Bundle, outCharts []*chart.Chart)

func (*BundleLoader) Load

func (_m *BundleLoader) Load(_a0 io.Reader) (*internal.Bundle, []*chart.Chart, error)

Load provides a mock function with given fields: _a0

type BundleUpserter

type BundleUpserter struct {
	mock.Mock
}

BundleUpserter is an autogenerated mock type for the BundleUpserter type

func (*BundleUpserter) ExpectErrorOnUpsert

func (bi *BundleUpserter) ExpectErrorOnUpsert(outErr error)

func (*BundleUpserter) ExpectOnUpsert

func (bi *BundleUpserter) ExpectOnUpsert(inBundle *internal.Bundle)

func (*BundleUpserter) Upsert

func (_m *BundleUpserter) Upsert(_a0 *internal.Bundle) (bool, error)

Upsert provides a mock function with given fields: _a0

type ChartUpserter

type ChartUpserter struct {
	mock.Mock
}

ChartUpserter is an autogenerated mock type for the ChartUpserter type

func (*ChartUpserter) ExpectErrorOnUpsert

func (ci *ChartUpserter) ExpectErrorOnUpsert(outErr error)

func (*ChartUpserter) ExpectOnUpsert

func (ci *ChartUpserter) ExpectOnUpsert(inChart *chart.Chart)

func (*ChartUpserter) Upsert

func (_m *ChartUpserter) Upsert(c *chart.Chart) (bool, error)

Upsert provides a mock function with given fields: c

type Repository

type Repository struct {
	mock.Mock
}

repository is an autogenerated mock type for the repository type

func (*Repository) BundleReader

func (_m *Repository) BundleReader(name ybundle.BundleName, version ybundle.BundleVersion) (io.Reader, func(), error)

BundleReader provides a mock function with given fields: name, version

func (*Repository) ExpectErrorOnBundleReader

func (m *Repository) ExpectErrorOnBundleReader(outErr error)

func (*Repository) ExpectErrorOnIndexReader

func (m *Repository) ExpectErrorOnIndexReader(outErr error)

func (*Repository) ExpectOnBundleReader

func (m *Repository) ExpectOnBundleReader(givenName ybundle.BundleName, givenVersion ybundle.BundleVersion, bundleReader io.Reader)

func (*Repository) ExpectOnIndexReader

func (m *Repository) ExpectOnIndexReader(idxContent string)

func (*Repository) IndexReader

func (_m *Repository) IndexReader() (io.Reader, func(), error)

IndexReader provides a mock function with given fields:

Jump to

Keyboard shortcuts

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