mirror of
https://github.com/jhillyerd/inbucket.git
synced 2025-12-17 09:37:02 +00:00
* lua: Intial impl with config and pool Signed-off-by: James Hillyerd <james@hillyerd.com>
19 lines
388 B
Go
19 lines
388 B
Go
package luahost_test
|
|
|
|
import (
|
|
"strings"
|
|
"testing"
|
|
|
|
"github.com/inbucket/inbucket/pkg/extension"
|
|
"github.com/inbucket/inbucket/pkg/extension/luahost"
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestEmptyScript(t *testing.T) {
|
|
script := ""
|
|
extHost := extension.NewHost()
|
|
|
|
_, err := luahost.NewFromReader(extHost, strings.NewReader(script), "test.lua")
|
|
require.NoError(t, err)
|
|
}
|