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

hluk / CopyQ / #4038
79%

Build:
DEFAULT BRANCH: master
Ran 15 Nov 2023 04:43AM UTC
Jobs 1
Files 302
Run time 19s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

15 Nov 2023 04:37AM UTC coverage: 74.398% (-0.007%) from 74.405%
#4038

push

travis-ci

hluk
Optimize string operations mainly on app initiation

The string literal conversion rules are listed below.

Keep "..." where it is used/passed as `const char *`.

    log("...", LogWarning)

    COPYQ_LOG("...")

    qgetenv("...")

    byteArray + "..."

    qobj.setProperty("...", value)

Prefer QLatin1String("...") where it will be used as QLatin1String as in
comparison or concatenation with QString:

    const QString str = QLatin1String("...") + str2;

    if (str == QLatin1String("...")) ...

    if (str.startsWith(QLatin1String("..."))) ...

    if (str.endsWith(QLatin1String("..."))) ...

Otherwise prefer QStringLiteral("...") where it will be used as QString.

    QStringLiteral("...").arg(...)

    const QString str = QStringLiteral("image/");

Note: There is `QLatin1String::arg()` but it was introduced in Qt 5.14.

See also: https://doc.qt.io/qt-5/qstring.html#QStringLiteral

60 of 81 new or added lines in 7 files covered. (74.07%)

99 existing lines in 5 files now uncovered.

18589 of 24986 relevant lines covered (74.4%)

24157.55 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
92.05
0.0% src/app/app.cpp
1
75.12
-0.4% src/app/clipboardserver.cpp
1
74.29
0.0% src/common/server.cpp
3
89.63
-0.63% src/common/config.cpp
6
80.46
0.0% src/app/clipboardclient.cpp
9
80.88
-0.32% src/main.cpp

Uncovered Existing Lines

Lines Coverage ∆ File
2
75.12
-0.4% src/app/clipboardserver.cpp
2
83.97
-1.53% src/gui/shortcutbutton.cpp
4
85.0
0.0% src/platform/dummy/dummyclipboard.cpp
5
89.63
-0.63% src/common/config.cpp
86
71.16
0.67% src/common/common.cpp
Jobs
ID Job ID Ran Files Coverage
1 #4038.1 15 Nov 2023 04:43AM UTC 302
74.4
Source Files on build #4038
  • Tree
  • List 302
  • Changed 104
  • Source Changed 10
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • fae8a0be on github
  • Prev Build on master
  • Next Build on master
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