5 #ifndef SMARTTESTER_LOGUTILS_H
6 #define SMARTTESTER_LOGUTILS_H
10 #include <rtl/referencedImpl.h>
11 #include <utils/string_utils.h>
13 #include "constants.h"
14 #include "UnitTestExecUtils.h"
19 void printResult(
const HRESULT result);
21 void printTestStartInfo(
const std::wstring& testName);
23 void printEntityTestsStartInfo(
const std::wstring& entityName,
const std::wstring& entityType);
25 void errorLogLine(
const std::vector<std::string>& line);
27 void infoLogLine(
const std::vector<std::string> &line);
29 void infoLogLines(
const std::vector<std::vector<std::string>>& lines);
31 void printAndEmptyErrors(
const refcnt::Swstr_list& errors);
33 void logConfigurationError(
const tester::FilterConfig &config, HRESULT expected, HRESULT result);
35 std::size_t getLoggedLinesCount(
const std::string& logFilePath);
42 std::vector<std::vector<std::string>> readLogFile(
const std::string& logPath);
50 bool compareLines(
const std::vector<std::string>& resultLogLine,
const std::vector<std::string>& referenceLogLine);
54 #endif //SMARTTESTER_LOGUTILS_H