#include "test/cctest/test-disasm-regex-helper.h"
#include "include/v8-function.h"
#include "src/api/api-inl.h"
#include "src/diagnostics/disassembler.h"
#include "src/objects/objects-inl.h"
#include "test/cctest/cctest.h"
namespace v8 {
namespace internal {
namespace {
std::string DisassembleFunction(const char* function) { … }
}
bool CheckDisassemblyRegexPatterns(
const char* function_name, const std::vector<std::string>& patterns_array) { … }
namespace {
void RegexCheck(
const std::vector<std::string>& inputs,
const std::vector<std::string>& patterns,
RegexParser::Status expected_status,
std::function<void(const RegexParser&)> func = [](const RegexParser&) { … }
void RegexCheckOne(
const std::string& line, const std::string& pattern,
RegexParser::Status expected_status,
std::function<void(const RegexParser&)> func = [](const RegexParser&) { … }
void TestSymbolValue(const std::string& sym_name, const std::string& value,
const RegexParser& p) { … }
}
TEST(RegexParserSingleLines) { … }
TEST(RegexParserMultiLines) { … }
}
}