Documentation ¶
Index ¶
- func CopyFile(w io.Writer, filename string) error
- func NewTestApp(t *testing.T, name string, cmd *cli.Command) *cli.App
- func Root() (string, error)
- func Run(t *testing.T, tt *Harness, mux *http.ServeMux, ...)
- func TdF(t *testing.T) string
- func TestMain(m *testing.M)
- type ActivityTestSuite
- type GravlCmd
- type Harness
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTestApp ¶
func Root ¶
Root finds the root of the source tree by recursively ascending until 'go.mod' is located
Types ¶
type ActivityTestSuite ¶
type ActivityTestSuite struct { suite.Suite Name string Encodings []string MaxActivities int64 Routes bool Upload bool StreamSets bool }
ActivityTestSuite for testing activity services
func (*ActivityTestSuite) N ¶
func (s *ActivityTestSuite) N() int64
func (*ActivityTestSuite) TestActivity ¶
func (s *ActivityTestSuite) TestActivity()
func (*ActivityTestSuite) TestAthlete ¶
func (s *ActivityTestSuite) TestAthlete()
func (*ActivityTestSuite) TestRoutes ¶
func (s *ActivityTestSuite) TestRoutes()
func (*ActivityTestSuite) TestStreamSets ¶
func (s *ActivityTestSuite) TestStreamSets()
func (*ActivityTestSuite) TestUpload ¶
func (s *ActivityTestSuite) TestUpload()
TestUploads confirms collecting files and initiating a dryrun upload works but doesn't
actually upload (if dryrun is working correctly!)
Click to show internal directories.
Click to hide internal directories.