some identier exported; new file import-utils.go

This commit is contained in:
2024-06-06 05:31:35 +02:00
parent 8144122d2c
commit c100cf349d
17 changed files with 186 additions and 170 deletions
+2 -2
View File
@@ -43,7 +43,7 @@ func dummy(ctx ExprContext, name string, args []any) (result any, err error) {
}
func TestFunctionToStringSimple(t *testing.T) {
source := newGolangFunctor(dummy)
source := NewGolangFunctor(dummy)
want := "func() {<body>}"
got := source.ToString(0)
if got != want {
@@ -52,7 +52,7 @@ func TestFunctionToStringSimple(t *testing.T) {
}
func TestFunctionGetFunc(t *testing.T) {
source := newGolangFunctor(dummy)
source := NewGolangFunctor(dummy)
want := ExprFunc(nil)
got := source.GetFunc()
if got != want {