Fix KBoomarkMenuTest when Bookmarks Editor is not installed
ClosedPublic

Authored by hallas on Apr 27 2019, 7:10 AM.

Details

Summary

Fix KBoomarkMenuTest when Bookmarks Editor is not installed. The test
depended on the Bookmarks Editor being installed.

Diff Detail

Repository
R294 KBookmarks
Branch
fix_kboomarkmenutest_without_bookmarks_editor (branched from master)
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 11296
Build 11314: arc lint + arc unit
hallas created this revision.Apr 27 2019, 7:10 AM
Restricted Application added a project: Frameworks. · View Herald TranscriptApr 27 2019, 7:10 AM
Restricted Application added a subscriber: kde-frameworks-devel. · View Herald Transcript
hallas requested review of this revision.Apr 27 2019, 7:10 AM

Thanks for the debugging. Looks good, just minor coding style issues.

autotests/kbookmarkmenutest.cpp
42

prepend static (good practice in general so the symbol isn't exported, although in a test program it doesn't make much difference). It becomes a readability difference to me, if I don't see static I wonder which other file wants to call this.

44

This code could put the result into a (local) static bool variable, to cache the result, but no big deal for a unittest.

47

prepend static

52

prepend static

hallas updated this revision to Diff 57100.Apr 27 2019, 1:42 PM
hallas marked 4 inline comments as done.

Make the global functions static.

hallas marked an inline comment as not done.Apr 27 2019, 1:42 PM
dfaure accepted this revision.Apr 27 2019, 2:06 PM
This revision is now accepted and ready to land.Apr 27 2019, 2:06 PM
hallas closed this revision.Apr 27 2019, 2:11 PM