Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockFirebaseApp ¶
MockFirebaseApp is a mock implementation of FirebaseAppInterface.
type MockMapsClient ¶ added in v1.36.17
type MockMapsClient struct { TimezoneResult *maps.TimezoneResult GeocodeResult []maps.GeocodingResult TimezoneErr bool GeocodeErr bool }
MockMapsClient is a mock implementation of MapsClientInterface.
func (*MockMapsClient) Geocode ¶ added in v1.36.17
func (m *MockMapsClient) Geocode(ctx context.Context, r *maps.GeocodingRequest) ([]maps.GeocodingResult, error)
Geocode calls the mocked Geocode function.
func (*MockMapsClient) Timezone ¶ added in v1.36.17
func (m *MockMapsClient) Timezone(ctx context.Context, r *maps.TimezoneRequest) (*maps.TimezoneResult, error)
Timezone calls the mocked Timezone function.
type MockReadFileFS ¶
MockReadFileFS is a mock implementation of fs.ReadFileFS.
type MockReader ¶
func NewMockReader ¶
func NewMockReader() *MockReader
func (*MockReader) Close ¶
func (r *MockReader) Close() error
type MockResponseWriter ¶
type MockResponseWriter struct { HeaderMap http.Header StatusCode int Body bytes.Buffer WriteErr bool }
MockResponseWriter is a custom mock implementation of http.ResponseWriter.
func NewMockResponseWriter ¶
func NewMockResponseWriter() *MockResponseWriter
NewMockResponseWriter creates a new instance of MockResponseWriter.
func (*MockResponseWriter) Header ¶
func (rw *MockResponseWriter) Header() http.Header
Header returns the mock headers.
func (*MockResponseWriter) Write ¶
func (rw *MockResponseWriter) Write(p []byte) (int, error)
Write mocks the Write method, which writes the response body.
func (*MockResponseWriter) WriteHeader ¶
func (rw *MockResponseWriter) WriteHeader(statusCode int)
WriteHeader mocks the WriteHeader method, which sets the HTTP status code.
type MockTokenSource ¶ added in v1.36.17
MockTokenSource is a mock implementation of oauth2.TokenSource.