#include "../bookmarkmanager.hpp" #include #include // clazy:excludeall=non-pod-global-static namespace { TEST(BookmarkManager, QStandardPaths) { const auto file = QStandardPaths::locate(QStandardPaths::AppLocalDataLocation, QString::fromLatin1("bookmarks.xbel")); EXPECT_TRUE(file.isEmpty()) << qUtf8Printable(file); } TEST(BookmarkManager, Manager) { BookmarkManager manager("bookmarks.xbel"); const auto load_errors = manager.errors(); EXPECT_EQ(load_errors.length(), 0) << qUtf8Printable(load_errors.join('\n')); } } // namespace