#include "nilorea/n_common.h"
#include "nilorea/n_diff.h"
#include "nilorea/n_log.h"
#include "nilorea/n_str.h"
#include <stdio.h>
#include <string.h>
#include <unistd.h>
Go to the source code of this file.
|
| static void | expect_contains (const char *label, const N_STR *out, const char *needle) |
| static void | expect_missing (const char *label, const N_STR *out, const char *needle) |
| static void | expect_size (const char *label, size_t got, size_t want) |
| static void | expect_true (const char *label, int cond) |
| static void | expect_unified (const char *label, const char *a, const char *b, const char *want) |
| int | main (int argc, char **argv) |
| static void | process_args (int argc, char **argv) |
◆ expect_contains()
| void expect_contains |
( |
const char * | label, |
|
|
const N_STR * | out, |
|
|
const char * | needle ) |
|
static |
◆ expect_missing()
| void expect_missing |
( |
const char * | label, |
|
|
const N_STR * | out, |
|
|
const char * | needle ) |
|
static |
◆ expect_size()
| void expect_size |
( |
const char * | label, |
|
|
size_t | got, |
|
|
size_t | want ) |
|
static |
◆ expect_true()
| void expect_true |
( |
const char * | label, |
|
|
int | cond ) |
|
static |
◆ expect_unified()
| void expect_unified |
( |
const char * | label, |
|
|
const char * | a, |
|
|
const char * | b, |
|
|
const char * | want ) |
|
static |
◆ main()
| int main |
( |
int | argc, |
|
|
char ** | argv ) |
Definition at line 119 of file ex_diff.c.
References _nstr, N_STR::data, expect_contains(), expect_missing(), expect_size(), expect_true(), expect_unified(), failures, free_nstr, line(), N_DIFF_RESULT::lines, list_foreach, LOG_ERR, N_DIFF_CONTEXT_FULL, N_DIFF_DELETE, N_DIFF_INSERT, n_diff_lines(), N_DIFF_NO_LINE, n_diff_result_free(), n_diff_to_unified(), n_log, N_DIFF_RESULT::nb_common, N_DIFF_RESULT::nb_deleted, N_DIFF_RESULT::nb_inserted, LIST::nb_items, new_nstr(), nstrprintf_cat, process_args(), set_log_level(), N_DIFF_RESULT::truncated, and N_STR::written.
◆ process_args()
| void process_args |
( |
int | argc, |
|
|
char ** | argv ) |
|
static |
◆ failures