LogViewer
A modern log viewer with AI-assisted analysis (Qt 6)
Loading...
Searching...
No Matches
TestRunIndex.cpp File Reference
#include "TestRunIndex.hpp"
#include "EventsContainer.hpp"
#include "sapi/SapiLogParser.hpp"
#include <QFile>
#include <QString>
#include <QXmlStreamReader>
#include <algorithm>
#include <array>
#include <cctype>
#include <charconv>
#include <fstream>
#include <system_error>
#include <utility>
Include dependency graph for TestRunIndex.cpp:

Namespaces

namespace  analyzer
 
namespace  analyzer::anonymous_namespace{TestRunIndex.cpp}
 

Typedefs

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

Functions

std::string_view analyzer::anonymous_namespace{TestRunIndex.cpp}::Trim (std::string_view s)
 
Metadata analyzer::anonymous_namespace{TestRunIndex.cpp}::ReadHeader (std::istream &in, std::string &firstDataLine)
 
std::string analyzer::anonymous_namespace{TestRunIndex.cpp}::Field (const db::LogEvent::EventItems &items, std::string_view key)
 
std::string analyzer::anonymous_namespace{TestRunIndex.cpp}::EventTimestamp (std::string_view line)
 
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.
 
std::string analyzer::anonymous_namespace{TestRunIndex.cpp}::FileTestName (const fs::path &file)
 
std::string analyzer::anonymous_namespace{TestRunIndex.cpp}::ToUpper (std::string s)
 
void analyzer::anonymous_namespace{TestRunIndex.cpp}::AddFailure (std::unordered_map< std::string, std::string > &failures, const QString &testName, const QString &message)
 
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=…>.
 
void analyzer::anonymous_namespace{TestRunIndex.cpp}::ReadOutputXmlFailures (const fs::path &path, std::unordered_map< std::string, std::string > &failures)
 
TestRunEntry analyzer::ReadTestLogSummary (const fs::path &file)
 
std::string analyzer::FindDecisiveFailureMessage (const fs::path &file)
 
std::unordered_map< std::string, std::string > analyzer::ReadRobotFailures (const fs::path &folder)
 
std::string analyzer::TestNameKey (std::string_view name)
 
std::string analyzer::CollapseWhitespace (std::string_view text)
 Collapses whitespace runs (including newlines) to one space and trims.
 
std::string analyzer::NormalizeFailureMessage (std::string_view message)
 
std::vector< TestRunEntry > analyzer::ScanResultsFolder (const fs::path &folder, const ScanProgress &progress)
 
std::vector< FailureGroup > analyzer::GroupFailures (const std::vector< TestRunEntry > &entries)
 

Variables

constexpr int analyzer::anonymous_namespace{TestRunIndex.cpp}::kMaxHeaderLines = 64
 
constexpr std::streamoff analyzer::anonymous_namespace{TestRunIndex.cpp}::kTailBytes = 64 * 1024
 
constexpr std::string_view analyzer::anonymous_namespace{TestRunIndex.cpp}::kUtf8Bom = "\xEF\xBB\xBF"