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

ParadoxGameConverters / Vic3ToHoI4 / 4189923376

pending completion
4189923376

Pull #265

github

GitHub
Merge e4a325e0a into eb87403de
Pull Request #265: Convert technology

154 of 154 new or added lines in 16 files covered. (100.0%)

1607 of 1796 relevant lines covered (89.48%)

86692.45 hits per line

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

37.5
/src/hoi4_world/states/hoi4_state.h
1
#ifndef SRC_HOI4WORLD_STATES_HOI4STATE_H
2
#define SRC_HOI4WORLD_STATES_HOI4STATE_H
3

4

5

6
#include <compare>
7
#include <optional>
8
#include <set>
9
#include <string>
10

11

12

13
namespace hoi4
14
{
15

16
class State
17
{
18
  public:
19
   explicit State(int id, std::optional<std::string> owner, std::set<int> provinces):
×
20
       id_(id),
×
21
       owner_(owner),
×
22
       provinces_(std::move(provinces))
×
23
   {
24
   }
×
25

26
   [[nodiscard]] int GetId() const { return id_; }
1,660✔
27
   [[nodiscard]] const std::optional<std::string>& GetOwner() const { return owner_; }
13✔
28
   [[nodiscard]] const std::set<int>& GetProvinces() const { return provinces_; }
1,065✔
29

30
   std::strong_ordering operator<=>(const State&) const = default;
31

32
  private:
33
   int id_;
34
   std::optional<std::string> owner_;
35
   std::set<int> provinces_;
36
};
37

38
}  // namespace hoi4
39

40

41

42
#endif  // SRC_HOI4WORLD_STATES_HOI4STATE_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