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

wirenboard / wb-mqtt-serial / 6

06 Nov 2025 11:53AM UTC coverage: 76.899% (+3.6%) from 73.348%
6

push

github

web-flow
Remove unnecessary files

6860 of 9109 branches covered (75.31%)

12949 of 16839 relevant lines covered (76.9%)

749.85 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