Welcome to mirror list, hosted at ThFree Co, Russian Federation.

utils.h « tests - github.com/gabime/spdlog.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 53c09b4694fec7a89ebf144a75d899d00505516c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#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);