diff options
author | BlakeMScurr <blakemscurr@gmail.com> | 2018-11-30 11:04:08 +1300 |
---|---|---|
committer | BlakeMScurr <blakemscurr@gmail.com> | 2018-11-30 11:04:08 +1300 |
commit | 643cdd3461007fafb1fd9284a65b54f36e55ddac (patch) | |
tree | 0266b3c0e5184e0da054d4310a7b301e208d056c /pkg/i18n | |
parent | 5c70d2724b508c3021558162fbfd9792c2d77e63 (diff) |
Add simple comments to uncommented functions.
Diffstat (limited to 'pkg/i18n')
-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 |