github.com/machinefi/w3bstream@v1.6.5-rc9.0.20240426031326-b8c7c4876e72/pkg/test/mock_depends_kit_sqlx/tx.go (about)

     1  package mock_sqlx
     2  
     3  import "github.com/golang/mock/gomock"
     4  
     5  func NewTx(c *gomock.Controller) *Tx {
     6  	return &Tx{
     7  		MockDBExecutor: NewMockDBExecutor(c),
     8  		MockTxExecutor: NewMockTxExecutor(c),
     9  	}
    10  }
    11  
    12  type Tx struct {
    13  	*MockDBExecutor
    14  	*MockTxExecutor
    15  }