2019-05-10 00:30:44 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <cstddef>
|
|
|
|
#include <string>
|
|
|
|
|
2019-09-29 20:13:24 +02:00
|
|
|
std::size_t count_files(const std::string &folder);
|
|
|
|
|
2019-05-10 00:30:44 +02:00
|
|
|
void prepare_logdir();
|
|
|
|
|
|
|
|
std::string file_contents(const std::string &filename);
|
|
|
|
|
|
|
|
std::size_t count_lines(const std::string &filename);
|
|
|
|
|
2020-04-11 22:31:39 +02:00
|
|
|
void require_message_count(const std::string &filename, const std::size_t messages);
|
|
|
|
|
2019-05-10 00:30:44 +02:00
|
|
|
std::size_t get_filesize(const std::string &filename);
|
|
|
|
|
2019-09-29 20:13:24 +02:00
|
|
|
bool ends_with(std::string const &value, std::string const &ending);
|