• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

bblanchon / ArduinoJson / 5489391768

pending completion
5489391768

push

github

bblanchon
`VariantSlot` stores a `StringNode*` for owned keys

18 of 18 new or added lines in 5 files covered. (100.0%)

3406 of 3429 relevant lines covered (99.33%)

6529.06 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

44.44
/src/ArduinoJson/Variant/Visitor.hpp
1
// ArduinoJson - https://arduinojson.org
2
// Copyright © 2014-2023, Benoit BLANCHON
3
// MIT License
4

5
#pragma once
6

7
#include <ArduinoJson/Array/ArrayData.hpp>
8
#include <ArduinoJson/Numbers/JsonFloat.hpp>
9
#include <ArduinoJson/Numbers/JsonInteger.hpp>
10
#include <ArduinoJson/Object/ObjectData.hpp>
11

12
ARDUINOJSON_BEGIN_PRIVATE_NAMESPACE
13

14
template <typename TResult>
15
struct Visitor {
16
  typedef TResult result_type;
17

18
  TResult visitArray(const ArrayData&) {
169✔
19
    return TResult();
169✔
20
  }
21

22
  TResult visitBoolean(bool) {
×
23
    return TResult();
×
24
  }
25

26
  TResult visitFloat(JsonFloat) {
×
27
    return TResult();
×
28
  }
29

30
  TResult visitSignedInteger(JsonInteger) {
4✔
31
    return TResult();
4✔
32
  }
33

34
  TResult visitNull() {
133✔
35
    return TResult();
133✔
36
  }
37

38
  TResult visitObject(const ObjectData&) {
1,485✔
39
    return TResult();
1,485✔
40
  }
41

42
  TResult visitUnsignedInteger(JsonUInt) {
×
43
    return TResult();
×
44
  }
45

46
  TResult visitRawString(const char*, size_t) {
×
47
    return TResult();
×
48
  }
49

50
  TResult visitString(const char*, size_t) {
×
51
    return TResult();
×
52
  }
53
};
54

55
ARDUINOJSON_END_PRIVATE_NAMESPACE
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc