mocks

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2026 License: Apache-2.0 Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package mocks holds generated test doubles for Celestial interfaces. A catalogue reader can accept photometry.Photometer and test its interaction with a MockPhotometer rather than rerunning the conversion.

All files here except this documentation are generated by game run mocks. Do not edit the generated implementations by hand.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockDevice added in v0.0.7

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

MockDevice is a mock of Device interface.

func NewMockDevice added in v0.0.7

func NewMockDevice(ctrl *gomock.Controller) *MockDevice

NewMockDevice creates a new mock instance.

func (*MockDevice) Buffer added in v0.0.7

func (m *MockDevice) Buffer(bytes int) (int, []byte, string)

Buffer mocks base method.

func (*MockDevice) Close added in v0.0.7

func (m *MockDevice) Close()

Close mocks base method.

func (*MockDevice) Commit added in v0.0.7

func (m *MockDevice) Commit() string

Commit mocks base method.

func (*MockDevice) Dispatch added in v0.0.7

func (m *MockDevice) Dispatch(kernel int, bound []int32, params []byte, width, height int) string

Dispatch mocks base method.

func (*MockDevice) EXPECT added in v0.0.7

func (m *MockDevice) EXPECT() *MockDeviceMockRecorder

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

func (*MockDevice) Open added in v0.0.7

func (m *MockDevice) Open(source string, kernels []string) (bool, string)

Open mocks base method.

func (*MockDevice) Seconds added in v0.0.7

func (m *MockDevice) Seconds() float64

Seconds mocks base method.

type MockDeviceMockRecorder added in v0.0.7

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

MockDeviceMockRecorder is the mock recorder for MockDevice.

func (*MockDeviceMockRecorder) Buffer added in v0.0.7

func (mr *MockDeviceMockRecorder) Buffer(bytes any) *gomock.Call

Buffer indicates an expected call of Buffer.

func (*MockDeviceMockRecorder) Close added in v0.0.7

func (mr *MockDeviceMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close.

func (*MockDeviceMockRecorder) Commit added in v0.0.7

func (mr *MockDeviceMockRecorder) Commit() *gomock.Call

Commit indicates an expected call of Commit.

func (*MockDeviceMockRecorder) Dispatch added in v0.0.7

func (mr *MockDeviceMockRecorder) Dispatch(kernel, bound, params, width, height any) *gomock.Call

Dispatch indicates an expected call of Dispatch.

func (*MockDeviceMockRecorder) Open added in v0.0.7

func (mr *MockDeviceMockRecorder) Open(source, kernels any) *gomock.Call

Open indicates an expected call of Open.

func (*MockDeviceMockRecorder) Seconds added in v0.0.7

func (mr *MockDeviceMockRecorder) Seconds() *gomock.Call

Seconds indicates an expected call of Seconds.

type MockEstimator

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

MockEstimator is a mock of Estimator interface.

func NewMockEstimator

func NewMockEstimator(ctrl *gomock.Controller) *MockEstimator

NewMockEstimator creates a new mock instance.

func (*MockEstimator) EXPECT

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

func (*MockEstimator) Estimate

func (m *MockEstimator) Estimate(parameter string) (*gw.Estimate, error)

Estimate mocks base method.

type MockEstimatorMockRecorder

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

MockEstimatorMockRecorder is the mock recorder for MockEstimator.

func (*MockEstimatorMockRecorder) Estimate

func (mr *MockEstimatorMockRecorder) Estimate(parameter any) *gomock.Call

Estimate indicates an expected call of Estimate.

type MockPhotometer

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

MockPhotometer is a mock of Photometer interface.

func NewMockPhotometer

func NewMockPhotometer(ctrl *gomock.Controller) *MockPhotometer

NewMockPhotometer creates a new mock instance.

func (*MockPhotometer) EXPECT

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

func (*MockPhotometer) Flux

func (m *MockPhotometer) Flux(band string, magnitude, magnitudeError float64) (*photometry.Flux, error)

Flux mocks base method.

type MockPhotometerMockRecorder

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

MockPhotometerMockRecorder is the mock recorder for MockPhotometer.

func (*MockPhotometerMockRecorder) Flux

func (mr *MockPhotometerMockRecorder) Flux(band, magnitude, magnitudeError any) *gomock.Call

Flux indicates an expected call of Flux.

type MockPotential added in v0.0.7

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

MockPotential is a mock of Potential interface.

func NewMockPotential added in v0.0.7

func NewMockPotential(ctrl *gomock.Controller) *MockPotential

NewMockPotential creates a new mock instance.

func (*MockPotential) EXPECT added in v0.0.7

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

func (*MockPotential) Pull added in v0.0.7

func (m *MockPotential) Pull(at orbit.Place) orbit.Pull

Pull mocks base method.

type MockPotentialMockRecorder added in v0.0.7

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

MockPotentialMockRecorder is the mock recorder for MockPotential.

func (*MockPotentialMockRecorder) Pull added in v0.0.7

func (mr *MockPotentialMockRecorder) Pull(at any) *gomock.Call

Pull indicates an expected call of Pull.

type MockProjector

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

MockProjector is a mock of Projector interface.

func NewMockProjector

func NewMockProjector(ctrl *gomock.Controller) *MockProjector

NewMockProjector creates a new mock instance.

func (*MockProjector) Back

func (m *MockProjector) Back(offset sky.Offset) sky.Equatorial

Back mocks base method.

func (*MockProjector) EXPECT

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

func (*MockProjector) Onto

func (m *MockProjector) Onto(at sky.Equatorial) (*sky.Offset, error)

Onto mocks base method.

type MockProjectorMockRecorder

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

MockProjectorMockRecorder is the mock recorder for MockProjector.

func (*MockProjectorMockRecorder) Back

func (mr *MockProjectorMockRecorder) Back(offset any) *gomock.Call

Back indicates an expected call of Back.

func (*MockProjectorMockRecorder) Onto

func (mr *MockProjectorMockRecorder) Onto(at any) *gomock.Call

Onto indicates an expected call of Onto.

Jump to

Keyboard shortcuts

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