View Source Comeonin.BehaviourTestHelper (Comeonin v5.5.1)
Test helper functions for Comeonin behaviours.
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.
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.