Comeonin v5.1.2 Comeonin.BehaviourTestHelper View Source
Test helper functions for Comeonin behaviours.
Link to this section Summary
Functions
Checks that the add_hash function creates a map with the password set to nil and the password_hash correctly set.
List of passwords that just contain basic ascii characters.
Checks that the check_pass function returns an error when no user is found.
Checks that the check_pass function returns an error for incorrect passwords.
Checks that the check_pass function returns the user for correct passwords.
Checks that the verify_pass function returns true for correct password.
List of passwords that contain non-ascii characters.
Checks that the verify_pass function returns false for incorrect passwords.
Link to this section Functions
add_hash_creates_map(module, password) View Source
Checks that the add_hash function creates a map with the password set to nil and the password_hash correctly set.
ascii_passwords() View Source
List of passwords that just contain basic ascii characters.
check_pass_nil_user(module) View Source
Checks that the check_pass function returns an error when no user is found.
check_pass_returns_error(module, password) View Source
Checks that the check_pass function returns an error for incorrect passwords.
check_pass_returns_user(module, password) View Source
Checks that the check_pass function returns the user for correct passwords.
correct_password_true(module, password) View Source
Checks that the verify_pass function returns true for correct password.
non_ascii_passwords() View Source
List of passwords that contain non-ascii characters.
wrong_password_false(module, password) View Source
Checks that the verify_pass function returns false for incorrect passwords.