fix Makefile, run gofmt on the all go files
This commit is contained in:
@@ -57,7 +57,7 @@ func TestAssignRefNew(t *testing.T) {
|
||||
Stmts: []node.Node{
|
||||
&stmt.Expression{
|
||||
Expr: &assign_op.AssignRef{
|
||||
Variable: &expr.Variable{VarName: &node.Identifier{Value: "$a"}},
|
||||
Variable: &expr.Variable{VarName: &node.Identifier{Value: "$a"}},
|
||||
Expression: &expr.New{
|
||||
Class: &name.Name{
|
||||
Parts: []node.Node{
|
||||
@@ -84,7 +84,7 @@ func TestAssignRefArgs(t *testing.T) {
|
||||
Stmts: []node.Node{
|
||||
&stmt.Expression{
|
||||
Expr: &assign_op.AssignRef{
|
||||
Variable: &expr.Variable{VarName: &node.Identifier{Value: "$a"}},
|
||||
Variable: &expr.Variable{VarName: &node.Identifier{Value: "$a"}},
|
||||
Expression: &expr.New{
|
||||
Class: &name.Name{
|
||||
Parts: []node.Node{
|
||||
@@ -93,9 +93,9 @@ func TestAssignRefArgs(t *testing.T) {
|
||||
},
|
||||
Arguments: []node.Node{
|
||||
&node.Argument{
|
||||
Variadic: false,
|
||||
Variadic: false,
|
||||
IsReference: false,
|
||||
Expr: &expr.Variable{VarName: &node.Identifier{Value: "$b"}},
|
||||
Expr: &expr.Variable{VarName: &node.Identifier{Value: "$b"}},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
@@ -6,7 +6,7 @@ import (
|
||||
"testing"
|
||||
|
||||
"github.com/kylelemons/godebug/pretty"
|
||||
|
||||
|
||||
"github.com/z7zmey/php-parser/node"
|
||||
"github.com/z7zmey/php-parser/node/expr"
|
||||
"github.com/z7zmey/php-parser/node/expr/cast"
|
||||
|
||||
@@ -3,9 +3,9 @@ package cast_test
|
||||
import (
|
||||
"reflect"
|
||||
"testing"
|
||||
|
||||
|
||||
"github.com/kylelemons/godebug/pretty"
|
||||
|
||||
|
||||
"github.com/z7zmey/php-parser/node"
|
||||
"github.com/z7zmey/php-parser/node/expr"
|
||||
"github.com/z7zmey/php-parser/node/expr/cast"
|
||||
|
||||
@@ -46,7 +46,7 @@ func TestStaticClassConstFetch(t *testing.T) {
|
||||
Stmts: []node.Node{
|
||||
&stmt.Expression{
|
||||
Expr: &expr.ClassConstFetch{
|
||||
Class: &node.Identifier{Value: "static"},
|
||||
Class: &node.Identifier{Value: "static"},
|
||||
ConstantName: &node.Identifier{Value: "bar"},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user