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

wirenboard / wb-mqtt-serial / 714

31 Oct 2025 05:56AM UTC coverage: 76.986% (+3.6%) from 73.348%
714

push

github

web-flow
Allow using domain names in RPC requests (#1010)

6860 of 9092 branches covered (75.45%)

12949 of 16820 relevant lines covered (76.99%)

750.66 hits per line

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

0.0
/src/confed_json_generator.cpp
1
#include "confed_json_generator.h"
2
#include "old_serial_config.h"
3

4
using namespace WBMQTT::JSON;
5

6
Json::Value MakeJsonForConfed(const std::string& configFileName, TTemplateMap& templates)
×
7
{
8
    Json::Value root(Parse(configFileName));
×
9
    // If a file contains some symbols, but not a valid JSON,
10
    // jsoncpp can return Json::nullValue instead of throwing an error
11
    if (!root.isObject()) {
×
12
        throw std::runtime_error("Failed to parse " + configFileName + ". The file is not a valid JSON");
×
13
    }
14
    FixOldConfigFormat(root, templates);
×
15
    return root;
×
16
}
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

© 2026 Coveralls, Inc