Software APIs
Macros
dif_test_base.h File Reference

(8a1a5fe)

Shared helpers for DIF unit tests. More...

#include <stdbool.h>
#include "gtest/gtest.h"
#include "sw/device/lib/dif/dif_base.h"

Go to the source code of this file.

Macros

#define EXPECT_DIF_OK(expr_)   EXPECT_EQ(expr_, kDifOk)
 Creates a test expectation for expr_ to evaluate to kDifOk.
 
#define ASSERT_DIF_OK(expr_)   ASSERT_EQ(expr_, kDifOk)
 Creates a test assertion for expr_ to evaluate to kDifOk.
 
#define EXPECT_DIF_BADARG(expr_)   EXPECT_EQ(expr_, kDifBadArg)
 Creates a test expectation for expr_ to evaluate to kDifBadArg.
 
#define ASSERT_DIF_BADARG(expr_)   ASSERT_EQ(expr_, kDifBadArg)
 Creates a test assertion for expr_ to evaluate to kDifBadArg.
 
#define EXPECT_DIF_LOCKED(expr_)   EXPECT_EQ(expr_, kDifLocked)
 Creates a test expectataion for expr to evaluate to kDifLocked.
 
#define EXPECT_DIF_OUTOFRANGE(expr_)   EXPECT_EQ(expr_, kDifOutOfRange)
 Creates a test expectataion for expr to evaluate to kDifOutOfRange.
 

Detailed Description

Shared helpers for DIF unit tests.

Definition in file dif_test_base.h.