github.com/brandonmanuel/git-chglog@v0.0.0-20200903004639-7a62fa08787a/cmd/git-chglog/generator_mock.go (about) 1 package main 2 3 import ( 4 "io" 5 6 chglog "github.com/BrandonManuel/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 }