aboutsummaryrefslogtreecommitdiff
path: root/test/rssparser.cpp
diff options
context:
space:
mode:
authorGravatar Dennis van der Schagt <dennisschagt@gmail.com> 2024-07-14 19:33:38 +0200
committerGravatar Alexander Batischev <eual.jp@gmail.com> 2024-11-22 20:38:43 +0300
commitd91fce43ad720ff0a690d0cdbedd99f756030793 (patch)
tree192ba4afb0cb784c335d36a54a39871bae6f30f5 /test/rssparser.cpp
parent71402d994f5086959c6ee5bd069cf3c0a1ccc772 (diff)
downloadnewsboat-d91fce43ad720ff0a690d0cdbedd99f756030793.tar.gz
newsboat-d91fce43ad720ff0a690d0cdbedd99f756030793.tar.zst
newsboat-d91fce43ad720ff0a690d0cdbedd99f756030793.zip
Cache: Pass ConfigContainer by reference
Diffstat (limited to 'test/rssparser.cpp')
-rw-r--r--test/rssparser.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/rssparser.cpp b/test/rssparser.cpp
index 04c04fbd..ca68518b 100644
--- a/test/rssparser.cpp
+++ b/test/rssparser.cpp
@@ -15,7 +15,7 @@ using namespace newsboat;
TEST_CASE("parse() ignores uninitialized upstream feed", "[RssParser]")
{
ConfigContainer cfg;
- Cache rsscache(":memory:", &cfg);
+ Cache rsscache(":memory:", cfg);
RssIgnores ignores;
RssParser parser("http://example.com", rsscache, cfg, &ignores);
@@ -28,7 +28,7 @@ TEST_CASE("parse() with no item GUID falls back to link+pubdate, link, and title
"[RssParser]")
{
ConfigContainer cfg;
- Cache rsscache(":memory:", &cfg);
+ Cache rsscache(":memory:", cfg);
RssIgnores ignores;
RssParser parser("http://example.com", rsscache, cfg, &ignores);
@@ -83,7 +83,7 @@ TEST_CASE("parse() renders html titles into plaintext if type indicates html",
"[RssParser]")
{
ConfigContainer cfg;
- Cache rsscache(":memory:", &cfg);
+ Cache rsscache(":memory:", cfg);
RssIgnores ignores;
RssParser parser("http://example.com", rsscache, cfg, &ignores);
@@ -128,7 +128,7 @@ TEST_CASE("parse() generates a title when title element is missing",
"[RssParser]")
{
ConfigContainer cfg;
- Cache rsscache(":memory:", &cfg);
+ Cache rsscache(":memory:", cfg);
RssIgnores ignores;
RssParser parser("http://example.com", rsscache, cfg, &ignores);
@@ -167,7 +167,7 @@ TEST_CASE("parse() generates a title when title element is missing",
TEST_CASE("parse() extracts best enclosure", "[RssParser]")
{
ConfigContainer cfg;
- Cache rsscache(":memory:", &cfg);
+ Cache rsscache(":memory:", cfg);
RssIgnores ignores;
RssParser parser("http://example.com", rsscache, cfg, &ignores);