diff options
Diffstat (limited to 'pkg/i18n/i18n_test.go')
-rw-r--r-- | pkg/i18n/i18n_test.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/i18n/i18n_test.go b/pkg/i18n/i18n_test.go index 5ddfdd79c..7ad5670d9 100644 --- a/pkg/i18n/i18n_test.go +++ b/pkg/i18n/i18n_test.go @@ -16,10 +16,12 @@ func getDummyLog() *logrus.Entry { log.Out = ioutil.Discard return log.WithField("test", "test") } +// TestNewLocalizer is a function func TestNewLocalizer(t *testing.T) { assert.NotNil(t, NewLocalizer(getDummyLog())) } +// TestDetectLanguage is a function func TestDetectLanguage(t *testing.T) { type scenario struct { langDetector func() (string, error) @@ -46,6 +48,7 @@ func TestDetectLanguage(t *testing.T) { } } +// TestLocalizer is a function func TestLocalizer(t *testing.T) { type scenario struct { userLang string |