Cascoda SDK
Cascoda SDK for building software to run with CA-821x transceivers
|
Unit tests for hash functions. More...
#include <setjmp.h>
#include <stdarg.h>
#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
#include <cmocka.h>
#include "cascoda-util/cascoda_hash.h"
Classes | |
struct | test_vector |
struct | fnv1a_32_test_vector |
struct | fnv1a_64_test_vector |
struct | crc_32_test_vector |
Macros | |
#define | LEN(x) (sizeof(x) - 1) |
#define | TEST(x) |
#define | TEST0(x) |
#define | R500(x) R100(x) R100(x) R100(x) R100(x) R100(x) |
#define | R100(x) R10(x) R10(x) R10(x) R10(x) R10(x) R10(x) R10(x) R10(x) R10(x) R10(x) |
#define | R10(x) x x x x x x x x x x |
Functions | |
int | main (void) |
Variables | |
struct test_vector | fnv_test_str [] |
struct fnv1a_32_test_vector | fnv1a_32_vector [] |
struct fnv1a_64_test_vector | fnv1a_64_vector [] |
struct test_vector | crc_test_str [] |
struct crc_32_test_vector | crc_32_vector [] |
Unit tests for hash functions.
#define LEN | ( | x | ) | (sizeof(x) - 1) |
#define R10 | ( | x | ) | x x x x x x x x x x |
#define TEST0 | ( | x | ) |
int main | ( | void | ) |
struct crc_32_test_vector crc_32_vector[] |
struct test_vector crc_test_str[] |
struct fnv1a_32_test_vector fnv1a_32_vector[] |
struct fnv1a_64_test_vector fnv1a_64_vector[] |
struct test_vector fnv_test_str[] |