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