1
/* tag: Tom Lord Tue Dec 4 14:41:26 2001 (test-coverage.h)
5
****************************************************************
6
* Copyright (C) 2000 Tom Lord
8
* See the file "COPYING" for further information about
9
* the copyright and warranty status of this work.
12
#ifndef INCLUDE__BUGS__TEST_COVERAGE_H
13
#define INCLUDE__BUGS__TEST_COVERAGE_H
16
#include "hackerlab/bugs/panic.h"
22
* #define TEST_COVERAGE_LIST(MACRO) \
23
* TEST_COVERAGE_ ## MACRO (name1); \
24
* TEST_COVERAGE_ ## MACRO (name2); \
26
* TEST_COVERAGE_ ## MACRO (name2) \
29
* TEST_COVERAGE_LIST(DECL);
34
* TEST_COVERED(name_n);
41
* TEST_COVERAGE_LIST(CHECK);
46
#define TEST_COVERAGE_DECL(NAME) static int NAME = 0
47
#define TEST_COVERAGE_CHECK(NAME) if (!NAME) panic ("test coverage failure: " #NAME)
48
#define TEST_COVERED(NAME) NAME = 1
52
/* automatically generated __STDC__ prototypes */
53
#endif /* INCLUDE__BUGS__TEST_COVERAGE_H */