LogViewer
A modern log viewer with AI-assisted analysis (Qt 6)
Loading...
Searching...
No Matches
analyzer::anonymous_namespace{TestRunIndex.cpp} Namespace Reference

Typedefs

using Metadata = db::EventsContainer::FileMetadata
 

Functions

std::string_view Trim (std::string_view s)
 
Metadata ReadHeader (std::istream &in, std::string &firstDataLine)
 
std::string Field (const db::LogEvent::EventItems &items, std::string_view key)
 
std::string EventTimestamp (std::string_view line)
 
std::string LastEventTimestamp (const fs::path &file)
 Timestamp of the last event line, read from the end of the file.
 
std::string FileTestName (const fs::path &file)
 
std::string ToUpper (std::string s)
 
void AddFailure (std::unordered_map< std::string, std::string > &failures, const QString &testName, const QString &message)
 
bool ReadXunitFailures (const fs::path &path, std::unordered_map< std::string, std::string > &failures)
 xunit.xml: <testcase name=…> holding <failure message=…> / <error message=…>.
 
void ReadOutputXmlFailures (const fs::path &path, std::unordered_map< std::string, std::string > &failures)
 

Variables

constexpr int kMaxHeaderLines = 64
 
constexpr std::streamoff kTailBytes = 64 * 1024
 
constexpr std::string_view kUtf8Bom = "\xEF\xBB\xBF"
 

Typedef Documentation

◆ Metadata

using analyzer::anonymous_namespace{TestRunIndex.cpp}::Metadata = typedef db::EventsContainer::FileMetadata

Function Documentation

◆ AddFailure()

void analyzer::anonymous_namespace{TestRunIndex.cpp}::AddFailure ( std::unordered_map< std::string, std::string > &  failures,
const QString &  testName,
const QString &  message 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ EventTimestamp()

std::string analyzer::anonymous_namespace{TestRunIndex.cpp}::EventTimestamp ( std::string_view  line)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ Field()

std::string analyzer::anonymous_namespace{TestRunIndex.cpp}::Field ( const db::LogEvent::EventItems &  items,
std::string_view  key 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ FileTestName()

std::string analyzer::anonymous_namespace{TestRunIndex.cpp}::FileTestName ( const fs::path &  file)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ LastEventTimestamp()

std::string analyzer::anonymous_namespace{TestRunIndex.cpp}::LastEventTimestamp ( const fs::path &  file)

Timestamp of the last event line, read from the end of the file.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ReadHeader()

Metadata analyzer::anonymous_namespace{TestRunIndex.cpp}::ReadHeader ( std::istream &  in,
std::string &  firstDataLine 
)

Reads the # header block of in; firstDataLine receives the first line after it (empty at end of file). The lines are decoded by SapiLogParser, so the keys match a loaded log's file metadata.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ReadOutputXmlFailures()

void analyzer::anonymous_namespace{TestRunIndex.cpp}::ReadOutputXmlFailures ( const fs::path &  path,
std::unordered_map< std::string, std::string > &  failures 
)

output.xml: the text of the FAIL <status> that is a direct child of a <test name=…> (keyword statuses are nested deeper).

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ReadXunitFailures()

bool analyzer::anonymous_namespace{TestRunIndex.cpp}::ReadXunitFailures ( const fs::path &  path,
std::unordered_map< std::string, std::string > &  failures 
)

xunit.xml: <testcase name=…> holding <failure message=…> / <error message=…>.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ToUpper()

std::string analyzer::anonymous_namespace{TestRunIndex.cpp}::ToUpper ( std::string  s)

◆ Trim()

std::string_view analyzer::anonymous_namespace{TestRunIndex.cpp}::Trim ( std::string_view  s)

Variable Documentation

◆ kMaxHeaderLines

constexpr int analyzer::anonymous_namespace{TestRunIndex.cpp}::kMaxHeaderLines = 64
constexpr

◆ kTailBytes

constexpr std::streamoff analyzer::anonymous_namespace{TestRunIndex.cpp}::kTailBytes = 64 * 1024
constexpr

◆ kUtf8Bom

constexpr std::string_view analyzer::anonymous_namespace{TestRunIndex.cpp}::kUtf8Bom = "\xEF\xBB\xBF"
constexpr