No flags found
Use flags to group coverage reports by test type, project and/or folders.
Then setup custom commit statuses and notifications for each flag.
e.g., #unittest #integration
#production #enterprise
#frontend #backend
01f8a6b
... +0 ...
c8aae42
Use flags to group coverage reports by test type, project and/or folders.
Then setup custom commit statuses and notifications for each flag.
e.g., #unittest #integration
#production #enterprise
#frontend #backend
197 | 197 | return invalidValue<std::complex<double>>(); |
|
198 | 198 | } |
|
199 | 199 | std::smatch m; |
|
200 | - | double re{ invalidValue<double>() }; |
|
201 | - | double im{ 0.0 }; |
|
200 | + | double re{invalidValue<double>()}; |
|
201 | + | double im{0.0}; |
|
202 | 202 | std::regex_search(val, m, creg); |
|
203 | 203 | try { |
|
204 | 204 | if (m.size() == 9) { |
375 | 375 | // go to the alternative path if this fails |
|
376 | 376 | } |
|
377 | 377 | } |
|
378 | - | auto res = std::count_if(val.begin() + fb, val.end(), [](auto c) { return (c == ',') || (c == ';'); }) + 1; |
|
378 | + | auto res = std::count_if( |
|
379 | + | val.begin() + fb, val.end(), [](auto c) { return (c == ',') || (c == ';'); }) + |
|
380 | + | 1; |
|
379 | 381 | return static_cast<int>(res); |
|
380 | 382 | } |
|
381 | 383 |
384 | 386 | if (val.empty()) { |
|
385 | 387 | return invalidValue<std::complex<double>>(); |
|
386 | 388 | } |
|
387 | - | if ((val.front() == 'v') || (val.front() == 'c')||val.front()=='[') { |
|
389 | + | if ((val.front() == 'v') || (val.front() == 'c') || val.front() == '[') { |
|
388 | 390 | auto V = helicsGetVector(val); |
|
389 | 391 | if (V.empty()) { |
|
390 | 392 | return invalidValue<std::complex<double>>(); |
402 | 404 | if (val.empty()) { |
|
403 | 405 | return invalidValue<double>(); |
|
404 | 406 | } |
|
405 | - | if (val.front() == 'v' ||val.front()=='[') { |
|
407 | + | if (val.front() == 'v' || val.front() == '[') { |
|
406 | 408 | auto V = helicsGetVector(val); |
|
407 | 409 | return vectorNorm(V); |
|
408 | 410 | } |
419 | 421 | data.resize(0); |
|
420 | 422 | return; |
|
421 | 423 | } |
|
422 | - | if (val.front() == 'v'||val.front()=='[') { |
|
424 | + | if (val.front() == 'v' || val.front() == '[') { |
|
423 | 425 | auto sz = readSize(val); |
|
424 | 426 | if (sz > 0) { |
|
425 | 427 | data.reserve(sz); |
Learn more Showing 8 files with coverage changes found.
src/helics/core/tcp/TcpHelperClasses.cpp
src/helics/core/zmq/ZmqComms.cpp
src/helics/core/tcp/TcpCommsSS.cpp
src/helics/core/test/TestComms.cpp
src/helics/core/TimeCoordinator.cpp
src/helics/core/CommonCore.cpp
src/helics/core/CoreBroker.cpp
src/helics/core/ipc/IpcQueueHelper.cpp
Files | Coverage |
---|---|
src/helics | -0.32% 75.16% |
Project Totals (195 files) | 75.16% |
c8aae42
01f8a6b