doompanning/tests/utils.h
oxmox 208a78cc23 Squashed 'external/spdlog/' content from commit ad0e89cb
git-subtree-dir: external/spdlog
git-subtree-split: ad0e89cbfb4d0c1ce4d097e134eb7be67baebb36
2023-02-03 22:02:26 +01:00

18 lines
No EOL
451 B
C++

#pragma once
#include <cstddef>
#include <string>
std::size_t count_files(const std::string &folder);
void prepare_logdir();
std::string file_contents(const std::string &filename);
std::size_t count_lines(const std::string &filename);
void require_message_count(const std::string &filename, const std::size_t messages);
std::size_t get_filesize(const std::string &filename);
bool ends_with(std::string const &value, std::string const &ending);