UoS³ Flight Computer Firmware
 All Data Structures Files Functions Groups Pages
test.h
Go to the documentation of this file.
1 
10 #ifndef __TEST_H__
11 #define __TEST_H__
12 
13 #ifndef TEST_VERBOSE
14  #define TEST_VERBOSE false
15 #endif
16 
17 #define assert_run(t, state) \
18  if(!(t)) \
19  { \
20  state = false; \
21  Debug_print("\033[1;31m[ ABORT ]\033[0;00m\n"); \
22  }
23 
24 #define assert_run_print(t, s, state) \
25  if((t)) \
26  { \
27  Debug_print("\033[1;32m[ PASS ]\033[0;32m " s "\033[0;00m\n"); \
28  } \
29  else \
30  { \
31  Debug_print("\033[1;31m[ FAIL ]\033[0;31m " s "\033[0;00m\n"); \
32  state = false; \
33  }
34 
44 void buffer_print_dec(uint8_t *buffer, uint32_t length);
45 
55 void buffer_print_hex(uint8_t *buffer, uint32_t length);
56 
66 void buffer_print_bin(uint8_t *buffer, uint32_t length);
67 
68 #include "packet/test/packet.h"
69 #include "buffer/test/buffer.h"
70 #include "util/test/util.h"
71 
72 #endif /* __TEST_H__ */
void buffer_print_bin(uint8_t *buffer, uint32_t length)
Definition: test.c:71
void buffer_print_dec(uint8_t *buffer, uint32_t length)
Definition: test.c:35
void buffer_print_hex(uint8_t *buffer, uint32_t length)
Definition: test.c:53