jigdo API

job/url-mapping-test.cc File Reference

#include <config.h>
#include <configfile.hh>
#include <debug.hh>
#include <log.hh>
#include <uri.hh>
#include <url-mapping.hh>

Functions

void loggerPut (const string &unitName, unsigned char unitNameLen, const char *format, int args, const Subst arg[])
void loggerInit ()
void expect (const char *s)
void ap (UrlMap &m, const MD5 &md, const char *s)
void as (UrlMap &m, const char *label, const char *s, bool expectFailure=false)
void test1 ()
void test2 ()
void test3 ()
void test4 ()
void expectEnum (PartUrlMapping *m, const char *expected)
void score1 ()
void score2 ()
void score3 ()
void score4 ()
void score5 ()
int main (int argc, char *argv[])

Variables

const char *const UNIT = "url-mapping"
string logged
bool unitEnabled = false
const string base = "http://baseurl/"
MD5 md [10]

Function Documentation

void @50::ap ( UrlMap m,
const MD5 md,
const char *  s 
) [static]

void @50::as ( UrlMap m,
const char *  label,
const char *  s,
bool  expectFailure = false 
) [static]

void @50::expect ( const char *  s  )  [static]

References Assert, and msg.

Referenced by test1(), test2(), test3(), and test4().

void expectEnum ( PartUrlMapping m,
const char *  expected 
)

void @50::loggerPut ( const string &  unitName,
unsigned char  unitNameLen,
const char *  format,
int  args,
const Subst  arg[] 
) [static]

void score1 (  ) 

References UrlMap::addPart(), UrlMap::dumpJigdoInfo(), expectEnum(), and md.

Referenced by main().

void score2 (  ) 

References ap(), UrlMap::dumpJigdoInfo(), expectEnum(), and md.

Referenced by main().

void score3 (  ) 

References ap(), as(), UrlMap::dumpJigdoInfo(), expectEnum(), and md.

Referenced by main().

void score4 (  ) 

References ap(), as(), UrlMap::dumpJigdoInfo(), expectEnum(), and md.

Referenced by main().

void score5 (  ) 

References ap(), as(), UrlMap::dumpJigdoInfo(), expectEnum(), and md.

Referenced by main().

void test1 (  ) 

References ap(), as(), UrlMap::dumpJigdoInfo(), expect(), logged, and md.

Referenced by main().

void test2 (  ) 

References as(), UrlMap::dumpJigdoInfo(), expect(), and logged.

Referenced by main().

void test3 (  ) 

References as(), UrlMap::dumpJigdoInfo(), expect(), and logged.

Referenced by main().

void test4 (  ) 

References as(), UrlMap::dumpJigdoInfo(), expect(), and logged.

Referenced by main().


Variable Documentation

const string base = "http://baseurl/" [static]

string logged [static]

Referenced by test1(), test2(), test3(), and test4().

const char* const UNIT = "url-mapping" [static]

bool unitEnabled = false [static]


Generated on Tue Sep 23 14:27:42 2008 for jigdo by  doxygen 1.5.6