boostorg / nowide

@@ -168,7 +168,7 @@
Loading
168 168
                } else if(BOOST_LIKELY(value <= 0xFFFF))
169 169
                {
170 170
                    return 3;
171 -
                } else // LCOV_EXCL_LINE
171 +
                } else
172 172
                {
173 173
                    return 4;
174 174
                }
@@ -378,7 +378,7 @@
Loading
378 378
            }
379 379
380 380
            static const int max_width = 2;
381 -
            static int width(code_point u) // LCOV_EXCL_LINE
381 +
            static int width(code_point u)
382 382
            {
383 383
                return u >= 0x10000 ? 2 : 1;
384 384
            }

@@ -29,7 +29,7 @@
Loading
29 29
           == s.end();
30 30
}
31 31
32 -
std::string replace_non_ascii(const std::string& s) // LCOV_EXCL_LINE
32 +
std::string replace_non_ascii(const std::string& s)
33 33
{
34 34
    std::string::const_iterator it = s.begin();
35 35
    namespace utf = boost::nowide::utf;

@@ -51,7 +51,7 @@
Loading
51 51
            output.insert(output.end(), buffer, buffer + num_chars_to_write);
52 52
            num_chars_written = num_chars_to_write;
53 53
            return true;
54 -
        } else // LCOV_EXCL_LINE
54 +
        } else
55 55
        {
56 56
            num_chars_written = 0;
57 57
            return false;

@@ -41,7 +41,7 @@
Loading
41 41
{
42 42
    return name;
43 43
}
44 -
std::string get_narrow_name(const std::wstring& name) // LCOV_EXCL_LINE
44 +
std::string get_narrow_name(const std::wstring& name)
45 45
{
46 46
    return boost::nowide::narrow(name);
47 47
}

@@ -155,7 +155,7 @@
Loading
155 155
    const std::streampos newPos = buf.pubseekoff(offset, std::ios_base::cur);
156 156
    // On 32 bit mode or when seek beyond EOF is not allowed, the current position should be unchanged
157 157
    if(newPos == std::streampos(-1))
158 -
        TEST_EQ(buf.pubseekoff(0, std::ios_base::cur), knownPos); // LCOV_EXCL_LINE
158 +
        TEST_EQ(buf.pubseekoff(0, std::ios_base::cur), knownPos);
159 159
    else
160 160
    {
161 161
#if !BOOST_NOWIDE_USE_FILEBUF_REPLACEMENT

@@ -400,7 +400,7 @@
Loading
400 400
    {
401 401
        TEST(to_next < to_end);
402 402
        return std::string(to, to_next) + boost::nowide::narrow(wreplacement_str);
403 -
    } else // LCOV_EXCL_LINE
403 +
    } else
404 404
        TEST_EQ(res, cvt_type::ok);
405 405
406 406
    return std::string(to, to_next);

@@ -132,7 +132,7 @@
Loading
132 132
            return static_cast<int>(from - save_from);
133 133
        }
134 134
135 -
        std::codecvt_base::result do_in(std::mbstate_t& std_state, // LCOV_EXCL_LINE
135 +
        std::codecvt_base::result do_in(std::mbstate_t& std_state,
136 136
                                        const char* from,
137 137
                                        const char* from_end,
138 138
                                        const char*& from_next,
@@ -230,7 +230,7 @@
Loading
230 230
                        // Store into state and continue at next character
231 231
                        state = w1;
232 232
                        continue;
233 -
                    } else // LCOV_EXCL_LINE
233 +
                    } else
234 234
                    {
235 235
                        // Neither a single codepoint nor a high surrogate so must be low surrogate.
236 236
                        // This is an error -> Replace character
Files Coverage
include/boost/nowide 88.69%
src 96.23%
test 98.60%
Project Totals (30 files) 95.76%
1
codecov:
2
  max_report_age: off
3
  require_ci_to_pass: yes
4
  notify:
5
    after_n_builds: 2
6
    wait_for_ci: yes
7
comment:
8
  layout: "diff, files"
9
ignore:
10
  - "test/test.hpp"
11
  - "test/file_test_helpers.cpp"
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading