github.com/goravel/framework@v1.13.9/foundation/console/stubs.go (about) 1 package console 2 3 type Stubs struct { 4 } 5 6 func (r Stubs) Test() string { 7 return `package DummyPackage 8 9 import ( 10 "testing" 11 12 "github.com/stretchr/testify/suite" 13 14 "goravel/tests" 15 ) 16 17 type DummyTestSuite struct { 18 suite.Suite 19 tests.TestCase 20 } 21 22 func TestDummyTestSuite(t *testing.T) { 23 suite.Run(t, new(DummyTestSuite)) 24 } 25 26 // SetupTest will run before each test in the suite. 27 func (s *DummyTestSuite) SetupTest() { 28 } 29 30 // TearDownTest will run after each test in the suite. 31 func (s *DummyTestSuite) TearDownTest() { 32 } 33 34 func (s *DummyTestSuite) TestIndex() { 35 // TODO 36 } 37 ` 38 }