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 ¶
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 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.