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

KazDragon / telnetpp / 15536908487

09 Jun 2025 02:25PM UTC coverage: 97.534% (+0.03%) from 97.509%
15536908487

Pull #267

github

web-flow
Merge 1682ed8d9 into 4e771feaa
Pull Request #267: Some C++20 improvements

132 of 137 new or added lines in 17 files covered. (96.35%)

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

5
namespace telnetpp {
6

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

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

33
}  // 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