Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockService ¶
MockService is an autogenerated mock type for the Service type
func NewMockService ¶
func NewMockService(t mockConstructorTestingTNewMockService) *MockService
NewMockService creates a new instance of MockService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*MockService) CalculateRankings ¶
func (_m *MockService) CalculateRankings(gameResults []league.GameResult) []league.Ranking
CalculateRankings provides a mock function with given fields: gameResults
type Service ¶
type Service interface {
CalculateRankings(gameResults []league.GameResult) []league.Ranking
}
Service provides usecases of the system, i.e. the real application logic.
type ServiceImpl ¶
type ServiceImpl struct{}
func NewServiceImpl ¶
func NewServiceImpl() *ServiceImpl
func (*ServiceImpl) CalculateRankings ¶
func (si *ServiceImpl) CalculateRankings(gameResults []league.GameResult) []league.Ranking
Click to show internal directories.
Click to hide internal directories.