aboutsummaryrefslogtreecommitdiff
path: root/tests/test.h
blob: 665127cc722a6ecee7619b83085ee9af3b180506 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef TEST_H
#define TEST_H

typedef void (*VoidMethod)(void);
typedef bool (*TestMethod)(void *);

typedef struct {
	char *     name;
	TestMethod t;
	void **    cases;
} Test;

typedef struct {
	VoidMethod setup;
	Test **    tests;
	VoidMethod teardown;
} TestSuite;

#endif

Generated with cgit - Back to sebastiano.tronto.net