mocks

package
v0.28.2 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package mocks contains all the mocks used in Zarf tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockReadCloser

type MockReadCloser struct {
	MockData     []byte
	MockReadErr  error
	MockCloseErr error
}

MockReadCloser is a mock for the go ReadCloser object.

func (*MockReadCloser) Close

func (mrc *MockReadCloser) Close() error

Close simply returns the expected close err from a test.

func (*MockReadCloser) Read

func (mrc *MockReadCloser) Read(buf []byte) (n int, err error)

Read copies a tests expected data and returns an expectedError.

Jump to

Keyboard shortcuts

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