mocking

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2023 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFound             = errors.New("interface not found")
	ErrMoreThanOneInterface = errors.New("more than one interface found, only one at a time is supported")
)

Functions

This section is empty.

Types

type Mocker

type Mocker interface {
	Mock(in string, out io.Writer, intf string) error
}

func NewMocker

func NewMocker() Mocker

type Service

type Service interface {
	Process(interfaces []string, filePath string) error
	ProcessOne(input io.Reader, output io.Writer) error
}

func NewService

func NewService(m Mocker) Service

Jump to

Keyboard shortcuts

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