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

KazDragon / telnetpp / 15539371610

09 Jun 2025 04:24PM UTC coverage: 97.534% (+0.03%) from 97.509%
15539371610

push

github

KazDragon
refactor: replace boost::ignore_unused with attribute

7 of 7 new or added lines in 3 files covered. (100.0%)

6 existing lines in 3 files now uncovered.

1068 of 1095 relevant lines covered (97.53%)

256.7 hits per line

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

87.5
/src/negotiation.cpp
1
#include "telnetpp/negotiation.hpp"
2

3
#include <format>
4
#include <iostream>
5

6
namespace telnetpp {
7

8
// ==========================================================================
9
// OPERATOR<<
10
// ==========================================================================
11
std::ostream &operator<<(std::ostream &out, negotiation const &neg)
4,620✔
12
{
13
    std::string_view const neg_type = [](negotiation_type const type) {
9,240✔
14
        switch (type)
4,620✔
15
        {
16
            case telnetpp::will:
1,359✔
17
                return "WILL";
1,359✔
18
            case telnetpp::wont:
1,087✔
19
                return "WONT";
1,087✔
20
            case telnetpp::do_:
1,087✔
21
                return "DO";
1,087✔
22
            case telnetpp::dont:
1,087✔
23
                return "DONT";
1,087✔
UNCOV
24
            default:
×
UNCOV
25
                assert(false);
×
26
                return "";
27
        }
28
    }(neg.request());
4,620✔
29

30
    return out << std::format(
4,620✔
31
               "negotiation[{}, 0x{:02X}]", neg_type, neg.option_code());
9,240✔
32
}
33

34
}  // namespace telnetpp
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