Ejemplo n.º 1
0
func TestMainHelp(t *testing.T) {
	t.Parallel()
	a := subcommandstest.MakeAppMock(t, application)
	args := []string{"help"}
	r := subcommands.Run(a, args)
	ut.AssertEqual(t, 0, r)
	a.CheckBuffer(true, false)
}
Ejemplo n.º 2
0
func makeDumbcasAppMock(t *testing.T) *DumbcasAppMock {
	return &DumbcasAppMock{ApplicationMock: subcommandstest.MakeAppMock(t, application)}
}