mapping

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package mapping is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AutoEQMapper

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

AutoEQMapper is an implementation of the Mapper interface. It maps autoeq FixedBandEQs into eqmac Presets.

func NewAutoEQMapper

func NewAutoEQMapper(gen UUIDGenerator) AutoEQMapper

NewAutoEQMapper returns a new AutoEQMapper that uses the input UUID Generator.

func (AutoEQMapper) MapFixedBand

func (m AutoEQMapper) MapFixedBand(fbeq *autoeq.FixedBandEQ, meta *autoeq.EQMetadata) (eqmac.EQPreset, error)

MapFixedBand maps fixed bands EQ data into an EqMac preset. Returns an error if any.

type Mapper

type Mapper interface {
	MapFixedBand(*autoeq.FixedBandEQ, *autoeq.EQMetadata) (eqmac.EQPreset, error)
}

Mapper defines the behavior of a component capable of mapping AutoEQ data into EqMac format.

type MockMapper

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

MockMapper is a mock of Mapper interface

func NewMockMapper

func NewMockMapper(ctrl *gomock.Controller) *MockMapper

NewMockMapper creates a new mock instance

func (*MockMapper) EXPECT

func (m *MockMapper) EXPECT() *MockMapperMockRecorder

EXPECT returns an object that allows the caller to indicate expected use

func (*MockMapper) MapFixedBand

func (m *MockMapper) MapFixedBand(arg0 autoeq.FixedBandEQ, arg1 autoeq.EQMetadata) (eqmac.EQPreset, error)

MapFixedBand mocks base method

type MockMapperMockRecorder

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

MockMapperMockRecorder is the mock recorder for MockMapper

func (*MockMapperMockRecorder) MapFixedBand

func (mr *MockMapperMockRecorder) MapFixedBand(arg0, arg1 interface{}) *gomock.Call

MapFixedBand indicates an expected call of MapFixedBand

type MockUUIDGenerator

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

MockUUIDGenerator is a mock of UUIDGenerator interface

func NewMockUUIDGenerator

func NewMockUUIDGenerator(ctrl *gomock.Controller) *MockUUIDGenerator

NewMockUUIDGenerator creates a new mock instance

func (*MockUUIDGenerator) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockUUIDGenerator) UUID

func (m *MockUUIDGenerator) UUID() string

UUID mocks base method

type MockUUIDGeneratorMockRecorder

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

MockUUIDGeneratorMockRecorder is the mock recorder for MockUUIDGenerator

func (*MockUUIDGeneratorMockRecorder) UUID

UUID indicates an expected call of UUID

type UUIDGenerator

type UUIDGenerator interface {
	UUID() string
}

UUIDGenerator defines the behavior of a component capable of creating a new UUID.

type WrappedGenerator

type WrappedGenerator func() string

WrappedGenerator is used to turn a function that returns a string into a UUIDGenerator.

func (WrappedGenerator) UUID

func (g WrappedGenerator) UUID() string

UUID returns the uuid generated by the WrappedGenerator.

Jump to

Keyboard shortcuts

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