Comeonin v5.1.1 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

Link to this function

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.

List of passwords that just contain basic ascii characters.

Link to this function

check_pass_nil_user(module) View Source

Checks that the check_pass function returns an error when no user is found.

Link to this function

check_pass_returns_error(module, password) View Source

Checks that the check_pass function returns an error for incorrect passwords.

Link to this function

check_pass_returns_user(module, password) View Source

Checks that the check_pass function returns the user for correct passwords.

Link to this function

correct_password_true(module, password) View Source

Checks that the verify_pass function returns true for correct password.

List of passwords that contain non-ascii characters.

Link to this function

wrong_password_false(module, password) View Source

Checks that the verify_pass function returns false for incorrect passwords.