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

wirenboard / wb-mqtt-serial / 2

29 Dec 2025 12:28PM UTC coverage: 76.817% (+4.0%) from 72.836%
2

Pull #1045

github

54aa0c
pgasheev
up changelog
Pull Request #1045: Fix firmware version in WB-M1W2 template

6873 of 9161 branches covered (75.02%)

12966 of 16879 relevant lines covered (76.82%)

1651.61 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