LCOV - code coverage report
Current view: top level - src/parser - RawFeed.cpp (source / functions) Coverage Total Hit
Test: coverage.info.cleaned Lines: 41.4 % 29 12
Test Date: 2026-03-23 10:19:47 Functions: 75.0 % 4 3

            Line data    Source code
       1              : #include "RawFeed.h"
       2              : #include <QString>
       3              : #include <QTextStream>
       4              : #include <QDebug>
       5              : 
       6          145 : RawFeed::RawFeed(QObject *parent) :
       7              :     FangObject(parent),
       8          145 :     title(""),
       9          145 :     subtitle(""),
      10          145 :     url(),
      11          145 :     lastUpdated(),
      12          145 :     minutesToUpdate(0),
      13          145 :     siteURL(),
      14          145 :     imageURL(),
      15          290 :     items()
      16              : {
      17          145 : }
      18              : 
      19          236 : RawFeed::~RawFeed()
      20              : {
      21          236 : }
      22              : 
      23            0 : QString RawFeed::toString()
      24              : {
      25            0 :     QString ret;
      26            0 :     QTextStream output(&ret);
      27            0 :     output << "Title: " << title << Qt::endl;
      28            0 :     output << "Subtitle: " << subtitle << Qt::endl;
      29            0 :     output << "url: " << url.url() << Qt::endl;
      30            0 :     output << "lastUpdated: " << lastUpdated.toString() << Qt::endl;
      31            0 :     output << "minutesToUpdate: " << minutesToUpdate << Qt::endl;
      32            0 :     output << Qt::endl;
      33              : 
      34            0 :     for (RawNews* item : items) {
      35            0 :         output << "title: " << item->title << Qt::endl;
      36            0 :         output << "author: " << item->author << Qt::endl;
      37            0 :         output << "description: " << item->description << Qt::endl;
      38            0 :         output << "url: " << item->url.toString() << Qt::endl;
      39            0 :         output << Qt::endl;
      40              :     }
      41              :     
      42            0 :     return ret;
      43            0 : }
        

Generated by: LCOV version 2.0-1