File tree Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 1
1
package expr_test
2
2
3
3
import (
4
+ "testing"
5
+
4
6
"github.com/antonmedv/expr"
5
7
"github.com/antonmedv/expr/vm"
6
- "testing"
7
8
)
8
9
9
10
func Benchmark_expr (b * testing.B ) {
Original file line number Diff line number Diff line change 1
1
package expr
2
2
3
3
import (
4
+ "reflect"
5
+
4
6
"github.com/antonmedv/expr/checker"
5
7
"github.com/antonmedv/expr/compiler"
6
8
"github.com/antonmedv/expr/internal/conf"
7
9
"github.com/antonmedv/expr/optimizer"
8
10
"github.com/antonmedv/expr/parser"
9
11
"github.com/antonmedv/expr/vm"
10
- "reflect"
11
12
)
12
13
13
14
// Eval parses, compiles and runs given input.
Original file line number Diff line number Diff line change @@ -3,13 +3,14 @@ package expr_test
3
3
import (
4
4
"encoding/json"
5
5
"fmt"
6
+ "strings"
7
+ "testing"
8
+ "time"
9
+
6
10
"github.com/antonmedv/expr"
7
11
"github.com/antonmedv/expr/vm"
8
12
"github.com/stretchr/testify/assert"
9
13
"github.com/stretchr/testify/require"
10
- "strings"
11
- "testing"
12
- "time"
13
14
)
14
15
15
16
func ExampleEval () {
You can’t perform that action at this time.
0 commit comments