MCPcopy Create free account
hub / github.com/bblanchon/ArduinoJson / shouldBeOk

Function shouldBeOk

extras/tests/JsonVariant/overflow.cpp:9–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7
8template <typename TOut, typename TIn>
9void shouldBeOk(TIn value) {
10 JsonDocument doc;
11 JsonVariant var = doc.to<JsonVariant>();
12 var.set(value);
13 REQUIRE(var.as<TOut>() == TOut(value));
14}
15
16template <typename TOut, typename TIn>
17void shouldOverflow(TIn value) {

Callers

nothing calls this directly

Calls 1

setMethod · 0.80

Tested by

no test coverage detected