Documentation
¶
Index ¶
- Variables
- func LoadAndPrint(loader Loader, ID int, dest io.Writer)
- func LoadPersonName(loader PersonLoader, ID int) (string, error)
- func Round(in float64) int
- func TestLanguageFeatures(t *testing.T)
- func TestLoadAndPrint_error(t *testing.T)
- func TestLoadAndPrint_happyPath(t *testing.T)
- func TestLoadAndPrint_notFound(t *testing.T)
- func TestLoadPersonName(t *testing.T)
- func TestLoadPersonNameStubs(t *testing.T)
- func TestRound(t *testing.T)
- func TestRound_down(t *testing.T)
- func TestRound_noChange(t *testing.T)
- func TestRound_up(t *testing.T)
- type Loader
- type Person
- type PersonLoader
- type PersonLoaderMock
- type PersonLoaderStub
- type Pet
- type PetSaver
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("person not found")
Functions ¶
func LoadPersonName ¶
func LoadPersonName(loader PersonLoader, ID int) (string, error)
func TestLanguageFeatures ¶
func TestLoadAndPrint_error ¶
func TestLoadPersonName ¶
func TestLoadPersonNameStubs ¶
func TestRound_down ¶
func TestRound_noChange ¶
func TestRound_up ¶
Types ¶
type PersonLoader ¶
type PersonLoaderMock ¶
Mocked implementation of PersonLoader
type PersonLoaderStub ¶
Stubbed implementation of PersonLoader
Click to show internal directories.
Click to hide internal directories.