Classes | Namespaces | Functions
benchmark/test/output_test_helper.cc File Reference
#include <cstdio>
#include <cstring>
#include <fstream>
#include <iostream>
#include <map>
#include <memory>
#include <random>
#include <sstream>
#include <streambuf>
#include "../src/benchmark_api_internal.h"
#include "../src/check.h"
#include "../src/log.h"
#include "../src/re.h"
#include "output_test.h"
Include dependency graph for benchmark/test/output_test_helper.cc:

Go to the source code of this file.

Classes

struct  internal::ResultsChecker::PatternAndFn
 
class  internal::ResultsChecker
 

Namespaces

 internal
 

Functions

int AddCases (TestCaseID ID, std::initializer_list< TestCase > il)
 
size_t AddChecker (const char *bm_name, ResultsCheckFn fn)
 
static bool FileExists (std::string const &name)
 
std::string GetFileReporterOutput (int argc, char *argv[])
 
static std::string GetRandomFileName ()
 
ResultsChecker & internal::GetResultsChecker ()
 
static std::string GetTempFileName ()
 
static char RandomHexChar ()
 
void RunOutputTests (int argc, char *argv[])
 
int SetSubstitutions (std::initializer_list< std::pair< std::string, std::string >> il)
 
int SubstrCnt (const std::string &haystack, const std::string &pat)
 
static char ToHex (int ch)
 

Function Documentation

◆ AddCases()

int AddCases ( TestCaseID  ID,
std::initializer_list< TestCase il 
)

Definition at line 361 of file benchmark/test/output_test_helper.cc.

◆ AddChecker()

size_t AddChecker ( const char *  bm_name,
ResultsCheckFn  fn 
)

Definition at line 302 of file benchmark/test/output_test_helper.cc.

◆ FileExists()

static bool FileExists ( std::string const name)
static

Definition at line 482 of file benchmark/test/output_test_helper.cc.

◆ GetFileReporterOutput()

std::string GetFileReporterOutput ( int  argc,
char *  argv[] 
)

Definition at line 501 of file benchmark/test/output_test_helper.cc.

◆ GetRandomFileName()

static std::string GetRandomFileName ( )
static

Definition at line 473 of file benchmark/test/output_test_helper.cc.

◆ GetTempFileName()

static std::string GetTempFileName ( )
static

Definition at line 487 of file benchmark/test/output_test_helper.cc.

◆ RandomHexChar()

static char RandomHexChar ( )
static

Definition at line 467 of file benchmark/test/output_test_helper.cc.

◆ RunOutputTests()

void RunOutputTests ( int  argc,
char *  argv[] 
)

Definition at line 391 of file benchmark/test/output_test_helper.cc.

◆ SetSubstitutions()

int SetSubstitutions ( std::initializer_list< std::pair< std::string, std::string >>  il)

Definition at line 367 of file benchmark/test/output_test_helper.cc.

◆ SubstrCnt()

int SubstrCnt ( const std::string &  haystack,
const std::string &  pat 
)

Definition at line 453 of file benchmark/test/output_test_helper.cc.

◆ ToHex()

static char ToHex ( int  ch)
static

Definition at line 462 of file benchmark/test/output_test_helper.cc.

Variable Documentation

◆ reporters_

std::vector<benchmark::BenchmarkReporter*> reporters_
private

Definition at line 168 of file benchmark/test/output_test_helper.cc.



grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:25