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

bblanchon / ArduinoJson / 4017712708

pending completion
4017712708

push

github

Benoit Blanchon
Deduce template argument of `pgm_read()`

15 of 15 new or added lines in 3 files covered. (100.0%)

3370 of 3386 relevant lines covered (99.53%)

6017.47 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,331✔
18
    return &SafeBoolIdom::safeBoolHelper;
1,331✔
19
  }
20

21
  static bool_type safe_false() {
303✔
22
    return 0;
303✔
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