--- test_init_auth ---
  PASS: auth_cookie_name

--- test_session_id_uniqueness ---
  PASS: session id has sufficient length
  PASS: two session ids are unique

--- test_password_salt_generation ---
  PASS: salt has correct length
  PASS: two salts are unique

--- test_hash_with_salt ---
  PASS: hash has #SALT$ prefix
  PASS: salt part has correct length
  PASS: hash part has sufficient length
  PASS: same password+salt = same hash
  PASS: different password = different hash
  PASS: different salt = different hash

--- test_password_hashing ---
  PASS: hash starts with #
  PASS: hash contains $ separator
  PASS: hash has sufficient total length
  PASS: same password gets different salt

--- test_password_verify ---
  PASS: per-user salt: correct password
  PASS: per-user salt: wrong password
  PASS: global salt: correct password
  PASS: global salt: wrong password
  PASS: plaintext: correct password
  PASS: plaintext: wrong password

--- test_rate_limiting ---
  PASS: new key is not locked out
  PASS: under threshold not locked out
  PASS: at threshold is locked out
  PASS: seconds remaining is positive
  PASS: cleared key is not locked out

--- test_safe_html ---
  PASS: angle brackets encoded
  PASS: plain text unchanged
  PASS: special chars encoded

--- test_signup_validation ---
  PASS: valid signup no error
  PASS: short safename rejected
  PASS: email mismatch rejected
  PASS: short password rejected
  PASS: password mismatch rejected
  PASS: invalid email rejected
  PASS: dangerous chars stripped from safename

--- test_password_reset_validation ---
  PASS: valid reset no error
  PASS: short password rejected
  PASS: mismatch rejected

--- test_safename_cleaning ---
  PASS: angle brackets removed
  PASS: clean name unchanged
  PASS: all bad chars removed

--- test_friendly_datetime ---
  PASS: today shows today
  PASS: yesterday shows yesterday
  PASS: empty input gives empty output

--- test_spoken_time ---
  PASS: afternoon shows p.m.
  PASS: morning shows a.m.
  PASS: empty time gives empty result

--- test_cookie_build_parse ---
  PASS: cookie contains session id
  PASS: cookie has correct name prefix
  PASS: parsed session id matches

--- test_genlink_lifecycle ---
  PASS: genlink gid created
  PASS: genlink validates with no error
  PASS: genlink type is pw_reset
  PASS: genlink data1 matches
  PASS: consumed genlink rejected on reuse
  PASS: unknown genlink rejected

--- test_write_error_audit ---
  PASS: error audit record written

--- test_check_safename_db ---
  PASS: exact safename found
  PASS: non-matching safename not found

--- test_check_email_exists_db ---
  PASS: existing email found
  PASS: non-existing email not found

=================================
Tests run:    62
Tests passed: 62
Tests failed: 0
=================================