github.com/wfusion/gofusion@v1.1.14/test/common/di/test.go (about) 1 package di 2 3 import ( 4 "context" 5 6 "github.com/wfusion/gofusion/log" 7 "github.com/wfusion/gofusion/test" 8 ) 9 10 type Test struct { 11 test.Suite 12 } 13 14 func (t *Test) SetupTest() { 15 t.Catch(func() { 16 log.Info(context.Background(), "------------ di test case begin ------------") 17 }) 18 } 19 20 func (t *Test) TearDownTest() { 21 t.Catch(func() { 22 log.Info(context.Background(), "------------ di test case end ------------") 23 }) 24 }