mock

package
v1.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Logger

func Logger() *zap.Logger

func TheoryRepository

func TheoryRepository(values TheoryRepositoryReturnValues) theory.Repository

TheoryRepository returns a mock implementation of theory.Repository

func TheoryService

func TheoryService(values TheoryServiceReturnValues) theory.Service

TheoryService return a mocked implementation of theory.Serice

Types

type TheoryRepositoryReturnValues

type TheoryRepositoryReturnValues struct {
	GetPitch        []interface{}
	ListPitchChords []interface{}
	ListPitchKeys   []interface{}
	ListPitchScales []interface{}
	ListPitches     []interface{}

	GetChord         []interface{}
	GetChordQuality  []interface{}
	ListChordKeys    []interface{}
	ListChordPitches []interface{}
	ListChordScales  []interface{}
	ListChords       []interface{}

	GetScale         []interface{}
	ListScaleChords  []interface{}
	ListScaleKeys    []interface{}
	ListScalePitches []interface{}
	ListScales       []interface{}

	GetKey         []interface{}
	ListKeyChords  []interface{}
	ListKeyModes   []interface{}
	ListKeyPitches []interface{}
	ListKeys       []interface{}
}

TheoryRepositoryReturnValues stores return value of mocked theory.Repository

type TheoryServiceReturnValues

type TheoryServiceReturnValues struct {
	GetPitch        []interface{}
	ListPitchChords []interface{}
	ListPitchKeys   []interface{}
	ListPitchScales []interface{}
	ListPitches     []interface{}

	GetChord         []interface{}
	GetChordQuality  []interface{}
	ListChordKeys    []interface{}
	ListChordPitches []interface{}
	ListChordScales  []interface{}
	ListChords       []interface{}

	GetScale         []interface{}
	ListScaleChords  []interface{}
	ListScaleKeys    []interface{}
	ListScalePitches []interface{}
	ListScales       []interface{}

	GetKey         []interface{}
	ListKeyChords  []interface{}
	ListKeyModes   []interface{}
	ListKeyPitches []interface{}
	ListKeys       []interface{}
}

TheoryServiceReturnValues stores return value of mocked theory.Service

Jump to

Keyboard shortcuts

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