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

wirenboard / wb-mqtt-serial / 6

13 Jan 2026 06:31AM UTC coverage: 76.817% (+4.0%) from 72.836%
6

Pull #1049

github

8b2ffc
Ilia1S
Remove fw from groups
Pull Request #1049: WB-MR templates: Add delays

6873 of 9161 branches covered (75.02%)

12966 of 16879 relevant lines covered (76.82%)

830.18 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