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_fn (UNITTEST_SOURCE_DIR "/userpass/user.txt") |
| |
| const std::string | user_file ("auth "+user_file_fn+"\n") |
| |
| const std::string | userpass_tag ("<auth>\n" "username\n" "password\n" "</auth>\n") |
| |
| const std::string | userpass_file_fn (UNITTEST_SOURCE_DIR "/userpass/userpass.txt") |
| |
| const std::string | userpass_file ("auth "+userpass_file_fn+"\n") |
| |
| | TEST (UserPass, Missing) |
| |
| | TEST (UserPass, NoArgs) |
| |
| | TEST (UserPass, UserOnly) |
| |
| | TEST (UserPass, UserPass) |
| |
| | TEST (UserPass, ParseFileUserOnly) |
| |
| | TEST (UserPass, ParseFileUserPass) |
| |
| | TEST (UserPass, ParseFileOverflow) |
| |
◆ TEST() [1/7]
| TEST |
( |
UserPass |
, |
|
|
Missing |
|
|
) |
| |
◆ TEST() [2/7]
| TEST |
( |
UserPass |
, |
|
|
NoArgs |
|
|
) |
| |
◆ TEST() [3/7]
| TEST |
( |
UserPass |
, |
|
|
ParseFileOverflow |
|
|
) |
| |
◆ TEST() [4/7]
| TEST |
( |
UserPass |
, |
|
|
ParseFileUserOnly |
|
|
) |
| |
◆ TEST() [5/7]
| TEST |
( |
UserPass |
, |
|
|
ParseFileUserPass |
|
|
) |
| |
◆ TEST() [6/7]
| TEST |
( |
UserPass |
, |
|
|
UserOnly |
|
|
) |
| |
◆ TEST() [7/7]
| TEST |
( |
UserPass |
, |
|
|
UserPass |
|
|
) |
| |
◆ user_file()
| const std::string user_file |
( |
"auth "+user_file_fn+"\n" |
| ) |
|
◆ user_file_fn()
| const std::string user_file_fn |
( |
UNITTEST_SOURCE_DIR "/userpass/user.txt" |
| ) |
|
◆ 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 "+userpass_file_fn+"\n" |
| ) |
|
◆ userpass_file_fn()
| const std::string userpass_file_fn |
( |
UNITTEST_SOURCE_DIR "/userpass/userpass.txt" |
| ) |
|
◆ 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 56 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 87 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 userpass_file("auth "+userpass_file_fn+"\n")
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 "+user_file_fn+"\n")
Definition at line 46 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 51 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 42 of file test_userpass.cpp.