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

ParadoxGameConverters / Vic3ToHoI4 / 16851853331

09 Aug 2025 05:21PM UTC coverage: 94.214% (+0.01%) from 94.201%
16851853331

Pull #746

github

web-flow
Merge 902d0a8c6 into 27b1ac9ea
Pull Request #746: More triggers

374 of 431 new or added lines in 32 files covered. (86.77%)

1 existing line in 1 file now uncovered.

22488 of 23869 relevant lines covered (94.21%)

56595.73 hits per line

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

71.43
/src/hoi4_world/roles/triggers/is_capital_trigger.h
1
#pragma once
2

3

4

5
#include <string>
6

7
#include "src/hoi4_world/roles/triggers/trigger_base.h"
8
#include "src/support/polymorphic_equality.h"
9

10

11

12
namespace hoi4
13
{
14

15
class IsCapitalTrigger: public Trigger
16
{
17
  public:
18
   explicit IsCapitalTrigger(bool value): value_(value) {}
17✔
19
   IsCapitalTrigger(const IsCapitalTrigger&) = default;
20
   IsCapitalTrigger& operator=(const IsCapitalTrigger&) = default;
21
   IsCapitalTrigger(IsCapitalTrigger&&) = default;
22
   IsCapitalTrigger& operator=(IsCapitalTrigger&&) = default;
23
   ~IsCapitalTrigger() override = default;
21✔
24

25
   [[nodiscard]] bool operator==(const Trigger& rhs) const override { return PolymorphicEquality(*this, rhs); }
5✔
26
   [[nodiscard]] bool operator==([[maybe_unused]] const IsCapitalTrigger& rhs) const { return value_ == rhs.value_; }
8✔
NEW
27
   [[nodiscard]] bool operator<(const Trigger& rhs) const override { return PolymorphicLess(*this, rhs); }
×
NEW
28
   [[nodiscard]] bool operator<([[maybe_unused]] const IsCapitalTrigger& rhs) const { return value_ < rhs.value_; }
×
29

30
   [[nodiscard]] std::unique_ptr<Trigger> Copy() const override { return std::make_unique<IsCapitalTrigger>(value_); }
1✔
31
   [[nodiscard]] bool IsValid(const Context& context, const World& world) const override;
32

33
   // This allows the Google test framework to print human-readable RepeatFocuses if a test fails.
34
   friend void PrintTo(const IsCapitalTrigger& trigger, std::ostream* os);
35

36
  private:
37
   bool value_;
38
};
39

40
}  // namespace hoi4
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