Classes | Functions | Variables
unit1395.c File Reference
#include "curlcheck.h"
#include "dotdot.h"
#include "memdebug.h"
Include dependency graph for unit1395.c:

Go to the source code of this file.

Classes

struct  dotdot
 

Functions

 fail_if (fails,"output mismatched")
 
 for (i=0;i< sizeof(pairs)/sizeof(pairs[0]);i++)
 
static CURLcode unit_setup (void)
 
static void unit_stop (void)
 

Variables

int fails = 0
 
UNITTEST_START unsigned int i
 
const struct dotdot pairs []
 

Function Documentation

fail_if ( fails  ,
"output mismatched"   
)
for ( )

Definition at line 77 of file unit1395.c.

static CURLcode unit_setup ( void  )
static

Definition at line 28 of file unit1395.c.

static void unit_stop ( void  )
static

Definition at line 33 of file unit1395.c.

Variable Documentation

int fails = 0

Definition at line 46 of file unit1395.c.

UNITTEST_START unsigned int i

Definition at line 45 of file unit1395.c.

const struct dotdot pairs[]
Initial value:
= {
{ "/a/b/c/./../../g", "/a/g" },
{ "mid/content=5/../6", "mid/6" },
{ "/hello/../moo", "/moo" },
{ "/1/../1", "/1" },
{ "/1/./1", "/1/1" },
{ "/1/..", "/" },
{ "/1/.", "/1/" },
{ "/1/./..", "/" },
{ "/1/./../2", "/2" },
{ "/hello/1/./../2", "/hello/2" },
{ "test/this", "test/this" },
{ "test/this/../now", "test/now" },
{ "/1../moo../foo", "/1../moo../foo"},
{ "/../../moo", "/moo"},
{ "/../../moo?andnot/../yay", "/moo?andnot/../yay"},
{ "/123?foo=/./&bar=/../", "/123?foo=/./&bar=/../"},
{ "/../moo/..?what", "/?what" },
{ "/", "/" },
{ "", "" },
{ "/.../", "/.../" },
{ "./moo", "moo" },
{ "../moo", "moo" },
{ "/.", "/" },
{ "/..", "/" },
{ "/moo/..", "/" },
{ "..", "" },
{ ".", "" },
}

Definition at line 47 of file unit1395.c.



rc_tagdetect_client
Author(s): Monika Florek-Jasinska , Raphael Schaller
autogenerated on Sat Feb 13 2021 03:42:17