usecase

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockService

type MockService struct {
	mock.Mock
}

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

Jump to

Keyboard shortcuts

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