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 ¶
- type MockDevice
- func (m *MockDevice) Buffer(bytes int) (int, []byte, string)
- func (m *MockDevice) Close()
- func (m *MockDevice) Commit() string
- func (m *MockDevice) Dispatch(kernel int, bound []int32, params []byte, width, height int) string
- func (m *MockDevice) EXPECT() *MockDeviceMockRecorder
- func (m *MockDevice) Open(source string, kernels []string) (bool, string)
- func (m *MockDevice) Seconds() float64
- type MockDeviceMockRecorder
- func (mr *MockDeviceMockRecorder) Buffer(bytes any) *gomock.Call
- func (mr *MockDeviceMockRecorder) Close() *gomock.Call
- func (mr *MockDeviceMockRecorder) Commit() *gomock.Call
- func (mr *MockDeviceMockRecorder) Dispatch(kernel, bound, params, width, height any) *gomock.Call
- func (mr *MockDeviceMockRecorder) Open(source, kernels any) *gomock.Call
- func (mr *MockDeviceMockRecorder) Seconds() *gomock.Call
- type MockEstimator
- type MockEstimatorMockRecorder
- type MockPhotometer
- type MockPhotometerMockRecorder
- type MockPotential
- type MockPotentialMockRecorder
- type MockProjector
- type MockProjectorMockRecorder
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) Commit ¶ added in v0.0.7
func (m *MockDevice) Commit() string
Commit 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 ¶
func (m *MockEstimator) EXPECT() *MockEstimatorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockEstimatorMockRecorder ¶
type MockEstimatorMockRecorder struct {
// contains filtered or unexported fields
}
MockEstimatorMockRecorder is the mock recorder for MockEstimator.
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 ¶
func (m *MockPhotometer) EXPECT() *MockPhotometerMockRecorder
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.
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
func (m *MockPotential) EXPECT() *MockPotentialMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockPotentialMockRecorder ¶ added in v0.0.7
type MockPotentialMockRecorder struct {
// contains filtered or unexported fields
}
MockPotentialMockRecorder is the mock recorder for MockPotential.
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 ¶
func (m *MockProjector) EXPECT() *MockProjectorMockRecorder
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.