mocks

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2026 License: Apache-2.0 Imports: 5 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 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 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