#include "nilorea/n_log.h"
#include "nilorea/n_query.h"
#include <stdio.h>
#include <string.h>
Go to the source code of this file.
|
| static void | expect (const char *label, int got, int want) |
| static void | expect_parse_error (const char *expr) |
| int | main (void) |
| static const char * | rec_get (const char *field, void *ud) |
| static int | run (const char *expr, const REC *r) |
◆ REC
- Examples
- ex_query.c.
Definition at line 36 of file ex_query.c.
| Data Fields |
|
const char * |
host |
|
|
const char * |
method |
|
|
const char * |
mime |
|
|
const char * |
path |
|
|
const char * |
status |
|
◆ expect()
| void expect |
( |
const char * | label, |
|
|
int | got, |
|
|
int | want ) |
|
static |
◆ expect_parse_error()
| void expect_parse_error |
( |
const char * | expr | ) |
|
|
static |
◆ main()
Definition at line 90 of file ex_query.c.
References expect(), expect_parse_error(), failures, REC::host, LOG_ERR, LOG_INFO, LOG_NOTICE, REC::method, REC::mime, n_log, n_query_compile_ex(), n_query_free(), REC::path, run, set_log_level(), and REC::status.
◆ rec_get()
| const char * rec_get |
( |
const char * | field, |
|
|
void * | ud ) |
|
static |
◆ run()
| int run |
( |
const char * | expr, |
|
|
const REC * | r ) |
|
static |
◆ failures