Functions | Variables
unit1606.c File Reference
#include "curlcheck.h"
#include "speedcheck.h"
#include "urldata.h"
Include dependency graph for unit1606.c:

Go to the source code of this file.

Functions

 fail_unless (runawhile(10, 50, 100, 2)==36, "bad timeout")
 
 fail_unless (runawhile(21, 21, 20, 0)==21, "wrong low speed timeout")
 
 fail_unless (runawhile(40, 40, 40, 0)==99, "should not time out")
 
UNITTEST_START fail_unless (runawhile(41, 41, 40, 0)==41, "wrong low speed timeout")
 
 fail_unless (runawhile(50, 50, 40, 0)==50, "wrong log speed timeout")
 
 fail_unless (runawhile(60, 60, 40, 0)==60, "wrong log speed timeout")
 
static int runawhile (long time_limit, long speed_limit, curl_off_t speed, int dec)
 
static CURLcode unit_setup (void)
 
static void unit_stop (void)
 

Variables

static CURLeasy
 

Function Documentation

◆ fail_unless() [1/6]

fail_unless ( runawhile(10, 50, 100, 2)  = =36,
"bad timeout  
)

◆ fail_unless() [2/6]

fail_unless ( runawhile(21, 21, 20, 0)  = =21,
"wrong low speed timeout  
)

◆ fail_unless() [3/6]

fail_unless ( runawhile(40, 40, 40, 0)  = =99,
"should not time out"   
)

◆ fail_unless() [4/6]

UNITTEST_START fail_unless ( runawhile(41, 41, 40, 0)  = =41,
"wrong low speed timeout  
)

◆ fail_unless() [5/6]

fail_unless ( runawhile(50, 50, 40, 0)  = =50,
"wrong log speed timeout  
)

◆ fail_unless() [6/6]

fail_unless ( runawhile(60, 60, 40, 0)  = =60,
"wrong log speed timeout  
)

◆ runawhile()

static int runawhile ( long  time_limit,
long  speed_limit,
curl_off_t  speed,
int  dec 
)
static

Definition at line 46 of file unit1606.c.

◆ unit_setup()

static CURLcode unit_setup ( void  )
static

Definition at line 29 of file unit1606.c.

◆ unit_stop()

static void unit_stop ( void  )
static

Definition at line 40 of file unit1606.c.

Variable Documentation

◆ easy

CURL* easy
static

Definition at line 27 of file unit1606.c.



rc_tagdetect_client
Author(s): Monika Florek-Jasinska , Raphael Schaller
autogenerated on Sun May 15 2022 02:25:02