20 #ifndef WREPORT_TEST_UTILS_LUA_H
21 #define WREPORT_TEST_UTILS_LUA_H
37 std::string m_filename;
39 Lua(
const std::string& src = std::string());
43 void loadFile(
const std::string& fname);
void loadString(const std::string &buf)
Load the test code from the given string containing Lua source code.
void create_lua_object()
Runs the parsed code to let it define the 'test' function we are going to use.
void loadFile(const std::string &fname)
Load the test code from the given file.
Copyright (C) 2008–2010 ARPA-SIM urpsim@smr.arpa.emr.it
Definition: cmdline.h:17
Definition: tests-lua.h:34
void captureOutput(std::ostream &buf)
Send Lua's print output to an ostream.
std::string run()
Run the 'test' function and return its result, as a string.