Split test_parser2 into multiple segments

This commit is contained in:
ado
2023-08-03 21:28:41 +02:00
parent 62e19df343
commit 761445bd36
8 changed files with 85 additions and 11 deletions

View File

@@ -1,9 +1,10 @@
#pragma once
#include <string>
#include <vector>
#include <sstream>
#include <ctime>
#include <iomanip>
#include <sstream>
#include <string>
#include <vector>
#include <filesystem>
#ifdef CMAKE_GITHUB_CI
#include <doctest/doctest.h>
@@ -48,13 +49,12 @@ struct unique_file_name {
const std::string name;
unique_file_name(const std::string& test)
: name{"random_" + test + "_" + std::to_string(i++) + "_" + time_now_rand() +
"_file.csv"} {
: name{"random_" + test + "_" + std::to_string(i++) + "_" +
time_now_rand() + "_file.csv"} {
}
~unique_file_name() {
// TODO uncomment
// std::filesystem::remove(name);
std::filesystem::remove(name);
}
};