Comeonin.BehaviourTestHelper (Comeonin v5.3.2) View Source

Test helper functions for Comeonin behaviours.

Link to this section Summary

Functions

Checks that the add_hash/2 function creates a map with the password_hash set.

List of passwords that just contain basic ascii characters.

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

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

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

Checks that the verify_pass/2 function returns true for correct password.

List of passwords that contain non-ascii characters.

Checks that the verify_pass/2 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/2 function creates a map with the password_hash 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/3 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/3 function returns an error for incorrect passwords.

Link to this function

check_pass_returns_user(module, password)

View Source

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

Link to this function

correct_password_true(module, password)

View Source

Checks that the verify_pass/2 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/2 function returns false for incorrect passwords.