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

ParadoxGameConverters / CK3toEU5 / 29985798984

23 Jul 2026 06:40AM UTC coverage: 97.913% (-2.1%) from 100.0%
29985798984

Pull #21

github

web-flow
Merge eb64591b6 into 0b521d221
Pull Request #21: Output

269 of 280 new or added lines in 16 files covered. (96.07%)

516 of 527 relevant lines covered (97.91%)

4.79 hits per line

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

88.89
/src/output/utils/file_writer_impl.cpp
1
#include "file_writer_impl.hpp"
2

3
#include <filesystem>
4
#include <format>
5
#include <fstream>
6
#include <print>
7
#include <stdexcept>
8
#include <string>
9

10

11

12
namespace out
13
{
14

15
void FileWriterImpl::CreateEmptyAndWrite(const std::filesystem::path& file_path, const std::string& content)
3✔
16
{
17
   if (std::filesystem::exists(file_path))
3✔
18
   {
19
      throw std::runtime_error(
20
          std::format("Could not create file {}, attempting to create same file twice!", file_path.string()));
1✔
21
   }
22

23
   std::ofstream write_file(file_path);
2✔
24
   if (!write_file.is_open())
2✔
25
   {
NEW
26
      throw std::runtime_error(std::format("Could not create file {}", file_path.string()));
×
27
   }
28
   std::print(write_file, "{}", content);
2✔
29
   write_file.close();
2✔
30
}
2✔
31

32
}  // namespace out
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc