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

bblanchon / ArduinoJson / 3619649488

pending completion
3619649488

push

github

Benoit Blanchon
CI: use `ubuntu-20.04` for GCC

3373 of 3389 relevant lines covered (99.53%)

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

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