mock

package
v0.0.0-...-5159988 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockCPUService

type MockCPUService struct {
	GetCPUStatsFunc func() (int, []float64, error)
}

func (*MockCPUService) GetCPUStats

func (m *MockCPUService) GetCPUStats() (int, []float64, error)

type MockCepService

type MockCepService struct {
	GetLocationFunc func(ctx context.Context, cep string) (domain.CepResponse, error)
}

func (*MockCepService) GetLocation

func (m *MockCepService) GetLocation(ctx context.Context, cep string) (domain.CepResponse, error)

type MockHTTPClient

type MockHTTPClient struct {
	DoFunc func(req *http.Request) (*http.Response, error)
}

func (*MockHTTPClient) Do

func (m *MockHTTPClient) Do(req *http.Request) (*http.Response, error)

type MockMemoryService

type MockMemoryService struct {
	GetMemoryStatsFunc func() (uint64, uint64, uint64, uint64, float64, error)
}

func (*MockMemoryService) GetMemoryStats

func (m *MockMemoryService) GetMemoryStats() (uint64, uint64, uint64, uint64, float64, error)

type MockWeatherService

type MockWeatherService struct {
	GetWeatherFunc func(ctx context.Context, location string) (domain.WeatherResponse, error)
}

func (*MockWeatherService) GetWeather

func (m *MockWeatherService) GetWeather(ctx context.Context, location string) (domain.WeatherResponse, error)

Jump to

Keyboard shortcuts

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