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

mbits-os / quick_dra / 22054814568

16 Feb 2026 08:08AM UTC coverage: 95.449% (+8.4%) from 87.008%
22054814568

Pull #39

github

web-flow
Merge c1ce10f54 into 7d773e4d9
Pull Request #39: testing

50 of 54 new or added lines in 22 files covered. (92.59%)

5 existing lines in 4 files now uncovered.

4195 of 4395 relevant lines covered (95.45%)

1613.34 hits per line

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

66.67
/libs/cli/src/commands.cpp
1
// Copyright (c) 2026 midnightBITS
2
// This code is licensed under MIT license (see LICENSE for details)
3

4
#include "commands.hpp"
5
#include <functional>
6
#include <string>
7
#include <utility>
8

9
using namespace std::literals;
10

11
namespace quick_dra {
12
        int tools::handle(std::string_view tool,
372✔
13
                          args::arglist args,
14
                          std::string_view tool_name) const {
1✔
15
                for (auto const& command : commands_) {
2,674✔
16
                        if (command.name != tool) continue;
892✔
17
                        std::string name{};
373✔
18
                        name.reserve(tool_name.size() + tool.size() + 1);
1,117✔
19
                        name.append(tool_name);
1,117✔
20
                        name.push_back(' ');
1,117✔
21
                        name.append(tool);
1,117✔
22
                        return command.tool(name, args, command.description);
1,117✔
23
                }  // GCOV_EXCL_LINE[WIN32]
2,076✔
24

25
                return -ENOENT;
26
        }
745✔
27

28
        std::set<std::string> tools::list_commands() const {
UNCOV
29
                std::set<std::string, std::less<>> commands{};
×
30

31
                for (auto const& builtin : commands_) {
32
                        auto it = commands.lower_bound(builtin.name);
×
33
                        if (it == commands.end() || *it != builtin.name)
34
                                commands.insert(
35
                                    it, std::string{builtin.name.data(), builtin.name.size()});
36
                }
37

38
                std::set<std::string> result{};
×
39
                result.merge(std::move(commands));
×
40
                return result;
×
41
        }
×
42
}  // namespace quick_dra
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