fix Makefile, run gofmt on the all go files

This commit is contained in:
z7zmey
2018-02-19 13:00:58 +02:00
parent 757f57c223
commit 014b0576d6
22 changed files with 67 additions and 78 deletions

View File

@@ -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"}},
},
},
},

View File

@@ -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"

View File

@@ -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"

View File

@@ -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"},
},
},