bcb4e51a409d94ae670de96afb8483a4f7855294Stephan Bosch/* Copyright (c) 2018 Dovecot authors, see the included COPYING file */
e88e76e782853e826d00524ee1133e64fb69b3d9Aki Tuomi"function script_init(req)\n"
e88e76e782853e826d00524ee1133e64fb69b3d9Aki Tuomi" dovecot.i_debug(\"lua script init called\")\n"
e88e76e782853e826d00524ee1133e64fb69b3d9Aki Tuomi" return 0\n"
e88e76e782853e826d00524ee1133e64fb69b3d9Aki Tuomi"function lua_function()\n"
e88e76e782853e826d00524ee1133e64fb69b3d9Aki Tuomi test_assert(dlua_script_create_string(luascript, &script, &error) == 0);
e88e76e782853e826d00524ee1133e64fb69b3d9Aki Tuomi test_assert(dlua_script_init(script, &error) == 0);
e88e76e782853e826d00524ee1133e64fb69b3d9Aki Tuomi test_assert(dlua_script_has_function(script, "lua_function"));
e88e76e782853e826d00524ee1133e64fb69b3d9Aki Tuomi void (*tests[])(void) = {