diff options
Diffstat (limited to 'internal/app/username_test.go')
| -rw-r--r-- | internal/app/username_test.go | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/internal/app/username_test.go b/internal/app/username_test.go deleted file mode 100644 index 1b2e0459..00000000 --- a/internal/app/username_test.go +++ /dev/null @@ -1,28 +0,0 @@ -package app - -import ( - "strings" - "testing" -) - -func TestIsValidUsername(t *testing.T) { - t.Parallel() - - t.Run("long", func(t *testing.T) { - if isValidUsername(strings.Repeat("a", sysconf(_SC_LOGIN_NAME_MAX))) { - t.Errorf("isValidUsername unexpected true") - } - }) - - t.Run("regexp", func(t *testing.T) { - if isValidUsername("0") { - t.Errorf("isValidUsername unexpected true") - } - }) - - t.Run("valid", func(t *testing.T) { - if !isValidUsername("alice") { - t.Errorf("isValidUsername unexpected false") - } - }) -} |
