boostorg / nowide

@@ -14,8 +14,7 @@
Loading
14 14
#include <windows.h>
15 15
#endif
16 16
17 -
// coverity [root_function]
18 -
void test_main(int, char**, char**)
17 +
void test_main(int, char**, char**) // coverity [root_function]
19 18
{
20 19
    std::string example = "\xd7\xa9-\xd0\xbc-\xce\xbd";
21 20
    std::string envVar = "BOOST_TEST2=" + example + "x";

@@ -199,8 +199,7 @@
Loading
199 199
    }
200 200
}
201 201
202 -
// coverity [root_function]
203 -
void test_main(int, char** argv, char**)
202 +
void test_main(int, char** argv, char**) // coverity [root_function]
204 203
{
205 204
    const std::string exampleFilename = std::string(argv[0]) + "-\xd7\xa9-\xd0\xbc-\xce\xbd.txt";
206 205

@@ -49,8 +49,7 @@
Loading
49 49
{} // LCOV_EXCL_LINE
50 50
#endif
51 51
52 -
// coverity [root_function]
53 -
void test_main(int, char** argv, char**)
52 +
void test_main(int, char** argv, char**) // coverity [root_function]
54 53
{
55 54
    const std::string prefix = argv[0];
56 55
    const std::string filename = prefix + "\xd7\xa9-\xd0\xbc-\xce\xbd.txt";

@@ -142,8 +142,7 @@
Loading
142 142
#endif
143 143
}
144 144
145 -
// coverity [root_function]
146 -
void test_main(int argc, char** argv, char** env)
145 +
void test_main(int argc, char** argv, char** env) // coverity [root_function]
147 146
{
148 147
    const int old_argc = argc;
149 148
    char** old_argv = argv;

@@ -359,8 +359,7 @@
Loading
359 359
#endif
360 360
}
361 361
362 -
// coverity [root_function]
363 -
void test_main(int argc, char** argv, char**)
362 +
void test_main(int argc, char** argv, char**) // coverity [root_function]
364 363
{
365 364
    // LCOV_EXCL_START
366 365
    if(usesNowideRdBufIn)

@@ -21,8 +21,7 @@
Loading
21 21
#endif
22 22
#include <boost/filesystem/operations.hpp>
23 23
24 -
// coverity [root_function]
25 -
void test_main(int, char** argv, char**)
24 +
void test_main(int, char** argv, char**) // coverity [root_function]
26 25
{
27 26
    boost::nowide::nowide_filesystem();
28 27
    const std::string prefix = argv[0];

@@ -127,8 +127,7 @@
Loading
127 127
}
128 128
#endif
129 129
130 -
// coverity [root_function]
131 -
void test_main(int, char**, char**)
130 +
void test_main(int, char**, char**) // coverity [root_function]
132 131
{
133 132
    std::string hello = "\xd7\xa9\xd7\x9c\xd7\x95\xd7\x9d";
134 133
    std::wstring whello = L"\u05e9\u05dc\u05d5\u05dd";

@@ -53,8 +53,7 @@
Loading
53 53
static_assert(get_data_width<std::u16string>::value == sizeof(char16_t), "!");
54 54
static_assert(get_data_width<std::u32string>::value == sizeof(char32_t), "!");
55 55
56 -
// coverity [root_function]
57 -
void test_main(int, char**, char**)
56 +
void test_main(int, char**, char**) // coverity [root_function]
58 57
{
59 58
#ifdef BOOST_NOWIDE_TEST_STD_STRINGVIEW
60 59
    std::cout << "Testing string_view" << std::endl;

@@ -533,8 +533,7 @@
Loading
533 533
    TEST(!fo.seekg(0)); // Does not work on closed stream
534 534
}
535 535
536 -
// coverity [root_function]
537 -
void test_main(int, char** argv, char**)
536 +
void test_main(int, char** argv, char**) // coverity [root_function]
538 537
{
539 538
    const std::string exampleFilename = std::string(argv[0]) + "-\xd7\xa9-\xd0\xbc-\xce\xbd.txt";
540 539

@@ -257,8 +257,7 @@
Loading
257 257
    }
258 258
}
259 259
260 -
// coverity [root_function]
261 -
void test_main(int, char** argv, char**)
260 +
void test_main(int, char** argv, char**) // coverity [root_function]
262 261
{
263 262
    const std::string exampleFilename = std::string(argv[0]) + "-\xd7\xa9-\xd0\xbc-\xce\xbd.txt";
264 263
    const std::string exampleFilename2 = std::string(argv[0]) + "-\xd7\xa9-\xd0\xbc-\xce\xbd 2.txt";

@@ -138,9 +138,11 @@
Loading
138 138
#pragma warning(disable : 4127)
139 139
#endif
140 140
    // if we can't use 64 bit offsets through the API, don't test anything
141 +
    // LCOV_EXCL_START
141 142
    // coverity[result_independent_of_operands]
142 143
    if(offset == nw::filebuf::off_type(0))
143 -
        return; // LCOV_EXCL_LINE coverity[dead_error_line]
144 +
        return; // coverity[dead_error_line]
145 +
    // LCOV_EXCL_STOP
144 146
#ifdef BOOST_MSVC
145 147
#pragma warning(pop)
146 148
#endif
@@ -298,8 +300,7 @@
Loading
298 300
    }
299 301
}
300 302
301 -
// coverity [root_function]
302 -
void test_main(int, char** argv, char**)
303 +
void test_main(int, char** argv, char**) // coverity [root_function]
303 304
{
304 305
    const std::string exampleFilename = std::string(argv[0]) + "-\xd7\xa9-\xd0\xbc-\xce\xbd.txt";
305 306

@@ -62,8 +62,7 @@
Loading
62 62
    return ss.get();
63 63
}
64 64
65 -
// coverity [root_function]
66 -
void test_main(int, char**, char**)
65 +
void test_main(int, char**, char**) // coverity [root_function]
67 66
{
68 67
    std::string hello = "\xd7\xa9\xd7\x9c\xd7\x95\xd7\x9d";
69 68
    std::wstring whello = boost::nowide::widen(hello);

@@ -412,8 +412,7 @@
Loading
412 412
    run_all(codecvt_to_wide, codecvt_to_narrow);
413 413
}
414 414
415 -
// coverity [root_function]
416 -
void test_main(int, char**, char**)
415 +
void test_main(int, char**, char**) // coverity [root_function]
417 416
{
418 417
    test_codecvt_basic();
419 418
    test_codecvt_unshift();

@@ -13,8 +13,7 @@
Loading
13 13
#include <errno.h>
14 14
#endif
15 15
16 -
// coverity [root_function]
17 -
void test_main(int, char** argv, char**)
16 +
void test_main(int, char** argv, char**) // coverity [root_function]
18 17
{
19 18
    const std::string prefix = argv[0];
20 19
    const std::string filename = prefix + "\xd7\xa9-\xd0\xbc-\xce\xbd.txt";

@@ -43,7 +43,7 @@
Loading
43 43
    {
44 44
        const wstackstring wname(file_name);
45 45
        const wshort_stackstring wmode(mode);
46 -
        return _wfreopen(wname.get(), wmode.get(), stream);
46 +
        return _wfreopen(wname.get(), wmode.get(), stream); // coverity[var_deref_model]
47 47
    }
48 48
    ///
49 49
    /// \brief Same as fopen but file_name and mode are UTF-8 strings
@@ -52,7 +52,7 @@
Loading
52 52
    {
53 53
        const wstackstring wname(file_name);
54 54
        const wshort_stackstring wmode(mode);
55 -
        return detail::wfopen(wname.get(), wmode.get());
55 +
        return detail::wfopen(wname.get(), wmode.get()); // coverity[var_deref_model]
56 56
    }
57 57
    ///
58 58
    /// \brief Same as rename but old_name and new_name are UTF-8 strings

@@ -170,8 +170,7 @@
Loading
170 170
    TEST_EQ(read_file(filename2), "Foo Bar");
171 171
}
172 172
173 -
// coverity [root_function]
174 -
void test_main(int, char** argv, char**)
173 +
void test_main(int, char** argv, char**) // coverity [root_function]
175 174
{
176 175
    const std::string exampleFilename = std::string(argv[0]) + "-\xd7\xa9-\xd0\xbc-\xce\xbd.txt";
177 176
Files Coverage
include/boost/nowide 88.69%
src 96.23%
test 98.71%
Project Totals (30 files) 95.83%
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