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

ParadoxGameConverters / Vic3ToHoI4 / 16833341297

08 Aug 2025 02:47PM UTC coverage: 94.208% (+0.007%) from 94.201%
16833341297

Pull #746

github

web-flow
Merge 7d1d5deee into 27b1ac9ea
Pull Request #746: More triggers

320 of 377 new or added lines in 32 files covered. (84.88%)

1 existing line in 1 file now uncovered.

22464 of 23845 relevant lines covered (94.21%)

56652.68 hits per line

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

77.78
/src/hoi4_world/roles/triggers/is_on_continent_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 IsOnContinentTrigger: public Trigger
16
{
17
  public:
18
   explicit IsOnContinentTrigger(std::string_view value): value_(value) {}
11✔
19
   IsOnContinentTrigger(const IsOnContinentTrigger&) = default;
20
   IsOnContinentTrigger& operator=(const IsOnContinentTrigger&) = default;
21
   IsOnContinentTrigger(IsOnContinentTrigger&&) = default;
22
   IsOnContinentTrigger& operator=(IsOnContinentTrigger&&) = default;
23
   ~IsOnContinentTrigger() override = default;
13✔
24

25
   [[nodiscard]] bool operator==(const Trigger& rhs) const override { return PolymorphicEquality(*this, rhs); }
3✔
26
   [[nodiscard]] bool operator==([[maybe_unused]] const IsOnContinentTrigger& rhs) const
6✔
27
   {
28
      return value_ == rhs.value_;
6✔
29
   }
NEW
30
   [[nodiscard]] bool operator<(const Trigger& rhs) const override { return PolymorphicLess(*this, rhs); }
×
NEW
31
   [[nodiscard]] bool operator<([[maybe_unused]] const IsOnContinentTrigger& rhs) const { return value_ < rhs.value_; }
×
32

33
   [[nodiscard]] std::unique_ptr<Trigger> Copy() const override
1✔
34
   {
35
      return std::make_unique<IsOnContinentTrigger>(value_);
1✔
36
   }
37
   [[nodiscard]] bool IsValid(const Context& context, const World& world) const override;
38

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

42
  private:
43
   std::string value_;
44
};
45

46
}  // 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