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

ParadoxGameConverters / commonItems / 12846535547

18 Jan 2025 06:41PM UTC coverage: 75.846% (-1.7%) from 77.556%
12846535547

Pull #274

github

web-flow
Merge 8b9494010 into b007cb890
Pull Request #274: Eliminate warnings

279 of 358 new or added lines in 13 files covered. (77.93%)

38 existing lines in 2 files now uncovered.

1837 of 2422 relevant lines covered (75.85%)

240.46 hits per line

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

12.5
/ModLoader/ModParser.h
1
#ifndef MOD_PARSER_H
2
#define MOD_PARSER_H
3

4

5
#include <filesystem>
6

7
#include "../ConvenientParser.h"
8
#include <set>
9

10

11

12
namespace commonItems
13
{
14
class ModParser: convenientParser
15
{
16
  public:
17
        ModParser() = default;
×
18
        void parseMod(std::istream& theStream);
19
        void parseMod(const std::filesystem::path& fileName);
20
        [[deprecated("Use std::filesystem::path version")]] void parseMod(const std::string& fileName);
21

22
        void parseMetadata(std::istream& theStream);
23
        void parseMetadata(const std::filesystem::path& fileName);
24
        [[deprecated("Use std::filesystem::path version")]] void parseMetadata(const std::string& fileName);
25

NEW
26
        [[nodiscard]] const auto& getName() const { return name_; }
×
NEW
27
        [[nodiscard]] const auto& getFilesystemPath() const { return path_; }
×
28
        [[deprecated("Use getFilesystemPath()")]] [[nodiscard]] const std::string getPath() const { return path_.string(); }
NEW
29
        [[nodiscard]] auto isValid() const { return !name_.empty() && !path_.empty(); }
×
NEW
30
        [[nodiscard]] auto isCompressed() const { return compressed_; }
×
NEW
31
        [[nodiscard]] const auto& getDependencies() const { return dependencies_; }
×
NEW
32
        [[nodiscard]] const auto& getFilesystemReplacedPaths() const { return replacedPaths_; }
×
33
        [[deprecated("Use getFilesystemReplacedPaths()")]] [[nodiscard]] const std::set<std::string> getReplacedPaths() const;
34

35
        void setPath(const std::filesystem::path& path) { path_ = path; }
14✔
36
        [[deprecated("Use std::filesystem::path version")]] void setPath(const std::string& path);
37

38
  private:
39
        void registerKeys();
40

41
        std::string name_;
42
        std::filesystem::path path_;
43
        bool compressed_ = false;
44
        std::set<std::string> dependencies_;
45
        std::set<std::filesystem::path> replacedPaths_;
46
};
47
} // namespace commonItems
48

49
#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

© 2025 Coveralls, Inc