Celeritas 0.7.0-dev.370+develop.9def02c
Loading...
Searching...
No Matches
Macros | Functions
JsonTestMacros.hh File Reference

Test assertions that required nlohmann_json to be linked in. More...

#include <gtest/gtest.h>
#include <nlohmann/json.hpp>
#include "testdetail/TestMacrosImpl.hh"

Macros

#define EXPECT_JSON_ROUND_TRIP(OBJ, EXPECTED)    EXPECT_PRED_FORMAT2(::celeritas::testdetail::JsonRoundTrip, OBJ, EXPECTED)
 

Functions

template<class T >
inline ::testing::AssertionResult celeritas::testdetail::JsonRoundTrip (char const *input_expr, char const *, T const &input, std::string_view expected)
 Verify JSON round-trip serialization.
 

Detailed Description

Test assertions that required nlohmann_json to be linked in.