Go to the source code of this file.
|
const std::string | user_simple ("auth username\n") |
|
const std::string | user_tag ("<auth>\n" "username\n" "</auth>\n") |
|
const std::string | user_file ("auth " UNITTEST_SOURCE_DIR "/userpass/user.txt\n") |
|
const std::string | userpass_tag ("<auth>\n" "username\n" "password\n" "</auth>\n") |
|
const std::string | userpass_file ("auth " UNITTEST_SOURCE_DIR "/userpass/userpass.txt\n") |
|
| TEST (UserPass, missing) |
|
| TEST (UserPass, noargs) |
|
| TEST (UserPass, user_only) |
|
| TEST (UserPass, user_pass) |
|
| TEST (UserPass, parse_file_user_only) |
|
| TEST (UserPass, parse_file_user_pass) |
|
| TEST (UserPass, parse_file_overflow) |
|
◆ TEST() [1/7]
TEST |
( |
UserPass |
, |
|
|
missing |
|
|
) |
| |
◆ TEST() [2/7]
TEST |
( |
UserPass |
, |
|
|
noargs |
|
|
) |
| |
◆ TEST() [3/7]
TEST |
( |
UserPass |
, |
|
|
parse_file_overflow |
|
|
) |
| |
◆ TEST() [4/7]
TEST |
( |
UserPass |
, |
|
|
parse_file_user_only |
|
|
) |
| |
◆ TEST() [5/7]
TEST |
( |
UserPass |
, |
|
|
parse_file_user_pass |
|
|
) |
| |
◆ TEST() [6/7]
◆ TEST() [7/7]
◆ user_file()
const std::string user_file |
( |
"auth " UNITTEST_SOURCE_DIR "/userpass/user.txt\n" |
| ) |
|
◆ user_simple()
const std::string user_simple |
( |
"auth username\n" |
| ) |
|
◆ user_tag()
const std::string user_tag |
( |
"<auth>\n" "username\n" "</auth>\n" |
| ) |
|
◆ userpass_file()
const std::string userpass_file |
( |
"auth " UNITTEST_SOURCE_DIR "/userpass/userpass.txt\n" |
| ) |
|
◆ userpass_tag()
const std::string userpass_tag |
( |
"<auth>\n" "username\n" "password\n" "</auth>\n" |
| ) |
|
◆ flag_combos_missing_okay
const std::vector<unsigned int> flag_combos_missing_okay |
Initial value:{
0,
}
@ PASSWORD_REQUIRED
password must be present
@ USERNAME_REQUIRED
username must be present
@ OPT_OPTIONAL
if option is not present, USERNAME_REQUIRED and PASSWORD_REQUIRED are ignored
Definition at line 53 of file test_userpass.cpp.
◆ flag_combos_noargs_okay
const std::vector<unsigned int> flag_combos_noargs_okay |
◆ flag_combos_nofile
const std::vector<unsigned int> flag_combos_nofile |
Initial value:{
0,
}
@ OPT_REQUIRED
option must be present
Definition at line 84 of file test_userpass.cpp.
◆ flag_combos_pw_not_required
const std::vector<unsigned int> flag_combos_pw_not_required |
◆ flag_combos_pw_required
const std::vector<unsigned int> flag_combos_pw_required |
◆ flag_combos_required
const std::vector<unsigned int> flag_combos_required |
◆ onearg
const std::vector<std::string> onearg |
Initial value:{
const std::string user_file("auth " UNITTEST_SOURCE_DIR "/userpass/user.txt\n")
const std::string userpass_file("auth " UNITTEST_SOURCE_DIR "/userpass/userpass.txt\n")
const std::string user_simple("auth username\n")
const std::string user_tag("<auth>\n" "username\n" "</auth>\n")
Definition at line 43 of file test_userpass.cpp.
◆ optname
const std::string optname = "auth" |
◆ overflow_files
const std::vector<std::string> overflow_files |
Initial value:{
UNITTEST_SOURCE_DIR "/userpass/useroverflow.txt",
UNITTEST_SOURCE_DIR "/userpass/passoverflow.txt",
}
Definition at line 48 of file test_userpass.cpp.
◆ user_only
const std::vector<std::string> user_only |
◆ user_pass
const std::vector<std::string> user_pass |
Initial value:{
}
const std::string userpass_tag("<auth>\n" "username\n" "password\n" "</auth>\n")
Definition at line 39 of file test_userpass.cpp.