diff options
Diffstat (limited to 'pkg/utils/dummies.go')
-rw-r--r-- | pkg/utils/dummies.go | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/pkg/utils/dummies.go b/pkg/utils/dummies.go index ab6d041dd..b05f444b4 100644 --- a/pkg/utils/dummies.go +++ b/pkg/utils/dummies.go @@ -3,6 +3,9 @@ package utils import ( "io/ioutil" + "github.com/jesseduffield/lazygit/pkg/common" + "github.com/jesseduffield/lazygit/pkg/config" + "github.com/jesseduffield/lazygit/pkg/i18n" "github.com/sirupsen/logrus" ) @@ -12,3 +15,13 @@ func NewDummyLog() *logrus.Entry { log.Out = ioutil.Discard return log.WithField("test", "test") } + +func NewDummyCommon() *common.Common { + tr := i18n.EnglishTranslationSet() + newAppConfig := config.NewDummyAppConfig() + return &common.Common{ + Log: NewDummyLog(), + Tr: &tr, + UserConfig: newAppConfig.GetUserConfig(), + } +} |