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

bblanchon / ArduinoJson / 4143639874

pending completion
4143639874

push

github

Benoit Blanchon
Remove `ARDUINOJSON_HAS_NULLPTR`

3390 of 3406 relevant lines covered (99.53%)

5984.83 hits per line

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

80.0
/src/ArduinoJson/Misc/SafeBoolIdiom.hpp
1
// ArduinoJson - https://arduinojson.org
2
// Copyright © 2014-2022, Benoit BLANCHON
3
// MIT License
4

5
#pragma once
6

7
#include <ArduinoJson/Polyfills/type_traits.hpp>
8

9
namespace ARDUINOJSON_NAMESPACE {
10

11
template <typename T>
12
class SafeBoolIdom {
13
 protected:
14
  typedef void (T::*bool_type)() const;
15
  void safeBoolHelper() const {}
×
16

17
  static bool_type safe_true() {
1,337✔
18
    return &SafeBoolIdom::safeBoolHelper;
1,337✔
19
  }
20

21
  static bool_type safe_false() {
305✔
22
    return 0;
305✔
23
  }
24
};
25

26
}  // namespace ARDUINOJSON_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