test_helper

package
v0.0.0-...-f83a9ed Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2017 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTestGame

func CreateTestGame() (game models.Game)

helper creates a game w/ HomeTeam & AwayTeam

func CreateTestGameForHomeTeam

func CreateTestGameForHomeTeam(homeTeam models.Team) (game models.Game)

helper method creates game w/ away team

func CreateTestGameWithShots

func CreateTestGameWithShots() (game models.Game)

helper creates a game w/ shots

func CreateTestPlayer

func CreateTestPlayer() (player models.Player)

helper method creates test player w/ team

func CreateTestPlayerForTeam

func CreateTestPlayerForTeam(team models.Team)

create player associate to test team

func CreateTestShot

func CreateTestShot() (shot models.Shot)

helper creates test shot

func CreateTestTeam

func CreateTestTeam() (team models.Team)

Create test team for usage in tests

Types

This section is empty.

Jump to

Keyboard shortcuts

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