Agora  1.2.0
Agora project
utils.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <cstddef>
4 #include <string>
5 
6 std::size_t count_files(const std::string &folder);
7 
8 void prepare_logdir();
9 
10 std::string file_contents(const std::string &filename);
11 
12 std::size_t count_lines(const std::string &filename);
13 
14 void require_message_count(const std::string &filename, const std::size_t messages);
15 
16 std::size_t get_filesize(const std::string &filename);
17 
18 bool ends_with(std::string const &value, std::string const &ending);
require_message_count
void require_message_count(const std::string &filename, const std::size_t messages)
Definition: utils.cpp:49
Catch::Generators::value
GeneratorWrapper< T > value(T &&value)
Definition: catch.hpp:3999
count_lines
std::size_t count_lines(const std::string &filename)
Definition: utils.cpp:34
file_contents
std::string file_contents(const std::string &filename)
Definition: utils.cpp:24
filename
filename
Definition: parse_all_dl.m:14
count_files
std::size_t count_files(const std::string &folder)
Definition: utils.cpp:109
prepare_logdir
void prepare_logdir()
Definition: utils.cpp:10
ends_with
bool ends_with(std::string const &value, std::string const &ending)
Definition: utils.cpp:73
get_filesize
std::size_t get_filesize(const std::string &filename)
Definition: utils.cpp:61