github.com/git-chglog/git-chglog@v0.15.5-0.20240126074033-6a6993d52d69/mock_test.go (about)

     1  package chglog
     2  
     3  import gitcmd "github.com/tsuyoshiwada/go-gitcmd"
     4  
     5  type mockClient struct {
     6  	gitcmd.Client
     7  	ReturnExec func(string, ...string) (string, error)
     8  }
     9  
    10  func (m *mockClient) Exec(subcmd string, args ...string) (string, error) {
    11  	return m.ReturnExec(subcmd, args...)
    12  }