Files
mtusi2026lab2/evidence/password-tests.txt
T

43 lines
1.9 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
Дата: 2026-10-09.
> go test ./internal/password -count=1
ok gitflic.ru/project/d-sotnikova5/mtusi2026lab1-fork/internal/password 1.014s
> go vet ./internal/password
Без диагностических сообщений, код завершения 0.
Проверены: границы 12–128 Unicode code points, неверный UTF-8, двоеточие и пробелы,
разные хеши одинакового пароля, правильный/неправильный пароль,
128 кириллических символов без усечения, отклонение повреждённых записей и неподдерживаемых параметров.
Регистрация и вход через HTTP пока не используют этот пакет.
Дата: 2026-10-09.
> go test ./internal/password -v -count=1
=== RUN TestValidate
=== RUN TestValidate/empty
=== RUN TestValidate/11_characters
=== RUN TestValidate/12_characters
=== RUN TestValidate/128_Unicode_characters
=== RUN TestValidate/129_Unicode_characters
=== RUN TestValidate/invalid_UTF-8
=== RUN TestValidate/spaces_preserved
=== RUN TestValidate/colon_allowed
--- PASS: TestValidate (0.00s)
--- PASS: TestValidate/empty (0.00s)
--- PASS: TestValidate/11_characters (0.00s)
--- PASS: TestValidate/12_characters (0.00s)
--- PASS: TestValidate/128_Unicode_characters (0.00s)
--- PASS: TestValidate/129_Unicode_characters (0.00s)
--- PASS: TestValidate/invalid_UTF-8 (0.00s)
--- PASS: TestValidate/spaces_preserved (0.00s)
--- PASS: TestValidate/colon_allowed (0.00s)
=== RUN TestHashAndVerify
--- PASS: TestHashAndVerify (0.35s)
=== RUN TestLongUnicodePasswordIsNotTruncated
--- PASS: TestLongUnicodePasswordIsNotTruncated (0.18s)
=== RUN TestVerifyRejectsMalformedHash
--- PASS: TestVerifyRejectsMalformedHash (0.00s)
PASS
ok gitflic.ru/project/d-sotnikova5/mtusi2026lab1-fork/internal/password 1.052s