-
Notifications
You must be signed in to change notification settings - Fork 44
/
test_helpers.h
30 lines (24 loc) · 861 Bytes
/
test_helpers.h
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
/** \file test_helpers.h
*
* \brief Describes functions exported by test_helpers.c.
*
* This file is licensed as described by the file LICENCE.
*/
#ifndef TEST_HELPERS_H_INCLUDED
#define TEST_HELPERS_H_INCLUDED
#ifdef TEST
#include <stdio.h>
#include "common.h"
#include "bignum256.h"
extern void skipWhiteSpace(FILE *f);
extern void skipLine(FILE *f);
extern void bigPrintVariableSize(const uint8_t *number, const unsigned int size, const bool is_big_endian);
extern void printBigEndian16(const uint8_t *buffer);
extern void printLittleEndian32(const BigNum256 buffer);
extern void fillWithRandom(uint8_t *out, unsigned int len);
extern void reportSuccess(void);
extern void reportFailure(void);
extern void initTests(const char *source_file_name);
extern void finishTests(void);
#endif // #ifdef TEST
#endif // #ifndef TEST_HELPERS_H_INCLUDED