MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / MakeErrors

Function MakeErrors

Test/src/Grammar_unitest.cpp:4–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2#include "TestHelper.h"
3
4std::string MakeErrors(LuaParser &p) {
5 auto errors = p.GetErrors();
6 std::string errorOut;
7 for (auto &err: errors) {
8 errorOut.append(
9 util::format("msg: {}, at {}\n", err.ErrorMessage,
10 p.GetLuaFile()->GetLine(err.ErrorRange.StartOffset)));
11 }
12 return errorOut;
13}
14
15TEST(LuaGrammar, basic) {
16 std::vector<std::string> paths;

Callers 1

TESTFunction · 0.85

Calls 3

GetLineMethod · 0.80
GetLuaFileMethod · 0.80
formatFunction · 0.50

Tested by

no test coverage detected