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

ParadoxGameConverters / commonItems / 12477792601

24 Dec 2024 06:08AM UTC coverage: 77.556% (+16.9%) from 60.619%
12477792601

Pull #272

github

web-flow
Merge 4409e94b4 into f5b02f298
Pull Request #272: Create a cmake target for the commons library

1 of 1 new or added line in 1 file covered. (100.0%)

34 existing lines in 7 files now uncovered.

1745 of 2250 relevant lines covered (77.56%)

238.61 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/ModLoader/ModParser.h
1
#ifndef MOD_PARSER_H
2
#define MOD_PARSER_H
3
#include "../ConvenientParser.h"
4
#include <set>
5

6
namespace commonItems
7
{
8
class ModParser: convenientParser
9
{
10
  public:
UNCOV
11
        ModParser() = default;
×
12
        void parseMod(std::istream& theStream);
13
        void parseMod(const std::string& fileName);
14

15
        void parseMetadata(std::istream& theStream);
16
        void parseMetadata(const std::string& fileName);
17

UNCOV
18
        [[nodiscard]] const auto& getName() const { return name; }
×
UNCOV
19
        [[nodiscard]] const auto& getPath() const { return path; }
×
UNCOV
20
        [[nodiscard]] auto isValid() const { return !name.empty() && !path.empty(); }
×
UNCOV
21
        [[nodiscard]] auto isCompressed() const { return compressed; }
×
UNCOV
22
        [[nodiscard]] const auto& getDependencies() const { return dependencies; }
×
UNCOV
23
        [[nodiscard]] const auto& getReplacedPaths() const { return replacedPaths; }
×
24

UNCOV
25
        void setPath(const std::string& thePath) { path = thePath; }
×
26

27
  private:
28
        void registerKeys();
29

30
        std::string name;
31
        std::string path;
32
        bool compressed = false;
33
        std::set<std::string> dependencies;
34
        std::set<std::string> replacedPaths;
35
};
36
} // namespace commonItems
37

38
#endif // MOD_PARSER_H
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