github.com/fredbi/git-chglog@v0.0.0-20190706071416-d35c598eac81/cmd/git-chglog/generator_mock.go (about) 1 package main 2 3 import ( 4 "io" 5 6 chglog "github.com/fredbi/git-chglog" 7 ) 8 9 type mockGeneratorImpl struct { 10 ReturnGenerate func(io.Writer, string, *chglog.Config) error 11 } 12 13 func (m *mockGeneratorImpl) Generate(w io.Writer, query string, config *chglog.Config) error { 14 return m.ReturnGenerate(w, query, config) 15 }