You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
spdlog/tests/utils.h

20 lines
550 B
C

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