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