#include "curlcheck.h"
#include "netrc.h"
#include "memdebug.h"
Go to the source code of this file.
|
| | abort_unless (login !=NULL, "returned NULL!") |
| |
| | abort_unless (password !=NULL, "returned NULL!") |
| |
| | fail_unless (login[0]==0, "login should not have been changed") |
| |
| | fail_unless (password[0]==0, "password should not have been changed") |
| |
| | fail_unless (result==0, "Host should be found") |
| |
| | fail_unless (result==0, "Host should have been found") |
| |
| | fail_unless (result==1, "Host not found should return 1") |
| |
| | fail_unless (strncmp(login, "admi", 4)==0, "login should not have been changed") |
| |
| | fail_unless (strncmp(login, "admin", 5)==0, "login should be 'admin'") |
| |
| | fail_unless (strncmp(login, "adminn", 6)==0, "login should not have been changed") |
| |
| | fail_unless (strncmp(login, "me", 2)==0, "login should not have been changed") |
| |
| | fail_unless (strncmp(login, "none", 4)==0, "login should be 'none'") |
| |
| | fail_unless (strncmp(password, "none", 4)==0, "password should be 'none'") |
| |
| | fail_unless (strncmp(password, "passwd", 6)==0, "password should be 'passwd'") |
| |
| | free (login) |
| |
| | free (password) |
| |
| | memcpy (filename, filename1, strlen(filename1)) |
| |
| static CURLcode | unit_setup (void) |
| |
| static void | unit_stop (void) |
| |
◆ abort_unless() [1/2]
| abort_unless |
( |
login ! |
= NULL, |
|
|
"returned NULL!" |
|
|
) |
| |
◆ abort_unless() [2/2]
| abort_unless |
( |
password ! |
= NULL, |
|
|
"returned NULL!" |
|
|
) |
| |
◆ fail_unless() [1/12]
| fail_unless |
( |
login |
[0] = =0, |
|
|
"login should not have been changed" |
|
|
) |
| |
◆ fail_unless() [2/12]
| fail_unless |
( |
password |
[0] = =0, |
|
|
"password should not have been changed" |
|
|
) |
| |
◆ fail_unless() [3/12]
| fail_unless |
( |
result |
= =0, |
|
|
"Host should be found" |
|
|
) |
| |
◆ fail_unless() [4/12]
| fail_unless |
( |
result |
= =0, |
|
|
"Host should have been found" |
|
|
) |
| |
◆ fail_unless() [5/12]
| fail_unless |
( |
result |
= =1, |
|
|
"Host not found should return 1" |
|
|
) |
| |
◆ fail_unless() [6/12]
| fail_unless |
( |
strncmp(login, "admi", 4) |
= =0, |
|
|
"login should not have been changed" |
|
|
) |
| |
◆ fail_unless() [7/12]
| fail_unless |
( |
strncmp(login, "admin", 5) |
= =0, |
|
|
"login should be 'admin'" |
|
|
) |
| |
◆ fail_unless() [8/12]
| fail_unless |
( |
strncmp(login, "adminn", 6) |
= =0, |
|
|
"login should not have been changed" |
|
|
) |
| |
◆ fail_unless() [9/12]
| fail_unless |
( |
strncmp(login, "me", 2) |
= =0, |
|
|
"login should not have been changed" |
|
|
) |
| |
◆ fail_unless() [10/12]
| fail_unless |
( |
strncmp(login, "none", 4) |
= =0, |
|
|
"login should be 'none'" |
|
|
) |
| |
◆ fail_unless() [11/12]
| fail_unless |
( |
strncmp(password, "none", 4) |
= =0, |
|
|
"password should be 'none'" |
|
|
) |
| |
◆ fail_unless() [12/12]
| fail_unless |
( |
strncmp(password, "passwd", 6) |
= =0, |
|
|
"password should be 'passwd'" |
|
|
) |
| |
◆ free() [1/2]
◆ free() [2/2]
◆ memcpy()
◆ unit_setup()
◆ unit_stop()
| static void unit_stop |
( |
void |
| ) |
|
|
static |
◆ filename
◆ filename1
| const char* const filename1 = "log/netrc1304" |
|
static |
◆ login
◆ password
◆ result