MOS Source Code
Loading...
Searching...
No Matches
intsizes_unittests.c File Reference
#include <stdio.h>
#include <string.h>
#include <pb_decode.h>
#include <pb_encode.h>
#include "unittests.h"
#include "intsizes.pb.h"
+ Include dependency graph for intsizes_unittests.c:

Go to the source code of this file.

Macros

#define S(x)
 
#define TEST_ROUNDTRIP(int8, uint8, sint8, int16, uint16, sint16, int32, uint32, sint32, int64, uint64, sint64, expected_result)
 

Functions

int main ()
 

Macro Definition Documentation

◆ S

#define S ( x)
Value:
pb_istream_from_buffer((uint8_t*)x, sizeof(x) - 1)
pb_istream_t pb_istream_from_buffer(const pb_byte_t *buf, size_t msglen)
Definition pb_decode.c:143
unsigned char uint8_t
Definition pb_syshdr.h:20

Definition at line 8 of file intsizes_unittests.c.

◆ TEST_ROUNDTRIP

#define TEST_ROUNDTRIP ( int8,
uint8,
sint8,
int16,
uint16,
sint16,
int32,
uint32,
sint32,
int64,
uint64,
sint64,
expected_result )

Definition at line 12 of file intsizes_unittests.c.

Referenced by main().

Function Documentation

◆ main()

int main ( void )

Definition at line 70 of file intsizes_unittests.c.

+ Here is the call graph for this function: