(t *testing.T)
| 150 | } |
| 151 | |
| 152 | func TestFuncWrapSimple1Arg(t *testing.T) { |
| 153 | store := NewStore(NewEngine()) |
| 154 | f := WrapFunc(store, func(i int32) { |
| 155 | if i != 3 { |
| 156 | panic("wrong argument") |
| 157 | } |
| 158 | }) |
| 159 | result, trap := f.Call(store, 3) |
| 160 | require.Nil(t, trap) |
| 161 | require.Nil(t, result) |
| 162 | } |
| 163 | |
| 164 | func TestFuncWrapSimpleManyArg(t *testing.T) { |
| 165 | store := NewStore(NewEngine()) |