| 59 | } |
| 60 | |
| 61 | TEST_F(ScriptTestLua, TestPrint) |
| 62 | { |
| 63 | int top = lua_gettop(L); |
| 64 | ASSERT_TRUE(RunString(L, "print(\"test print\")")); |
| 65 | ASSERT_TRUE(RunString(L, "print(\"test\", \"multiple\")")); |
| 66 | |
| 67 | char* log = GetLog(); |
| 68 | |
| 69 | ASSERT_EQ(top, lua_gettop(L)); |
| 70 | #if defined(DM_NO_HTTP_CACHE) |
| 71 | ASSERT_STREQ("WARNING:SCRIPT: Http cache disabled\nDEBUG:SCRIPT: test print\nDEBUG:SCRIPT: test\tmultiple\n", log); |
| 72 | #else |
| 73 | ASSERT_STREQ("DEBUG:SCRIPT: test print\nDEBUG:SCRIPT: test\tmultiple\n", log); |
| 74 | #endif |
| 75 | } |
| 76 | |
| 77 | TEST_F(ScriptTestLua, TestPPrint) |
| 78 | { |
nothing calls this directly
no test coverage detected