blob: 5278eaec2509c5703999757324dd8f5424093e1f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#ifndef PKE_PKE_TEST_TYPES_H
#define PKE_PKE_TEST_TYPES_H
#include <setjmp.h>
#include <stdint.h>
struct pke_test_long_jump {
uint8_t expected_exit;
uint8_t caught;
jmp_buf jump_env;
};
extern struct pke_test_long_jump lj;
typedef int (pke_test_func)();
struct pke_test_group;
typedef struct pke_test_group *(pke_test_get_group)();
struct pke_test {
const char *title;
pke_test_func *func;
int expected_result;
};
struct pke_test_group {
const char *title;
struct pke_test *tests;
uint32_t n_tests;
};
#endif /* PKE_PKE_TEST_TYPES_H */
|