git/t/unit-tests/test-lib.c

#include "test-lib.h"

enum result {};

static struct {} ctx =;

/*
 * Visual C interpolates the absolute Windows path for `__FILE__`,
 * but we want to see relative paths, as verified by t0080.
 * There are other compilers that do the same, and are not for
 * Windows.
 */
#include "dir.h"

static const char *make_relative(const char *location)
{}

static void msg_with_prefix(const char *prefix, const char *format, va_list ap)
{}

void test_msg(const char *format, ...)
{}

void test_plan(int count)
{}

int test_done(void)
{}

void test_skip(const char *format, ...)
{}

void test_skip_all(const char *format, ...)
{}

void test__run_describe(const char *location, const char *format, ...)
{}

int test__run_begin(void)
{}

static void print_description(const char *format, va_list ap)
{}

int test__run_end(int was_run UNUSED, const char *location, const char *format, ...)
{}

static void test_fail(void)
{}

static void test_pass(void)
{}

static void test_todo(void)
{}

int test_assert(const char *location, const char *check, int ok)
{}

void test__todo_begin(void)
{}

int test__todo_end(const char *location, const char *check, int res)
{}

int check_bool_loc(const char *loc, const char *check, int ok)
{}

union test__tmp test__tmp[2];

int check_pointer_eq_loc(const char *loc, const char *check, int ok,
			 const void *a, const void *b)
{}

int check_int_loc(const char *loc, const char *check, int ok,
		  intmax_t a, intmax_t b)
{}

int check_uint_loc(const char *loc, const char *check, int ok,
		   uintmax_t a, uintmax_t b)
{}

static void print_one_char(char ch, char quote)
{}

static void print_char(const char *prefix, char ch)
{}

int check_char_loc(const char *loc, const char *check, int ok, char a, char b)
{}

static void print_str(const char *prefix, const char *str)
{}

int check_str_loc(const char *loc, const char *check,
		  const char *a, const char *b)
{}