Skip to content

Commit

Permalink
fix 'gofmt -s'
Browse files Browse the repository at this point in the history
Signed-off-by: Stephan Renatus <[email protected]>
  • Loading branch information
srenatus authored and tsandall committed Jun 5, 2018
1 parent 2ad67d8 commit 28ff561
Show file tree
Hide file tree
Showing 4 changed files with 163 additions and 163 deletions.
4 changes: 2 additions & 2 deletions ast/compile_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1441,8 +1441,8 @@ func TestCompilerSetGraph(t *testing.T) {
r := mod2.Rules[0]

edges := map[util.T]struct{}{
q: struct{}{},
r: struct{}{},
q: {},
r: {},
}

if !reflect.DeepEqual(edges, c.Graph.Dependencies(p)) {
Expand Down
14 changes: 7 additions & 7 deletions ast/parser_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -904,11 +904,11 @@ func TestRuleElseKeyword(t *testing.T) {
expected := &Module{
Package: MustParsePackage(`package test`),
Rules: []*Rule{
&Rule{
{
Head: head,
Body: MustParseBody(`"p0"`),
},
&Rule{
{
Head: head,
Body: MustParseBody(`"p1"`),
Else: &Rule{
Expand All @@ -930,11 +930,11 @@ func TestRuleElseKeyword(t *testing.T) {
},
},
},
&Rule{
{
Head: head,
Body: MustParseBody(`"p2"`),
},
&Rule{
{
Head: &Head{
Name: Var("f"),
Args: Args{VarTerm("x")},
Expand Down Expand Up @@ -968,11 +968,11 @@ func TestRuleElseKeyword(t *testing.T) {
notExpected := &Module{
Package: MustParsePackage(`package test`),
Rules: []*Rule{
&Rule{
{
Head: head,
Body: MustParseBody(`"p0"`),
},
&Rule{
{
Head: head,
Body: MustParseBody(`"p1"`),
Else: &Rule{
Expand All @@ -994,7 +994,7 @@ func TestRuleElseKeyword(t *testing.T) {
},
},
},
&Rule{
{
Head: head,
Body: MustParseBody(`"p2"`),
},
Expand Down
6 changes: 3 additions & 3 deletions ast/policy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ func TestExprEquals(t *testing.T) {
expr30 := &Expr{
Terms: MustParseTerm("data.foo.bar"),
With: []*With{
&With{
{
Target: MustParseTerm("input"),
Value: MustParseTerm("bar"),
},
Expand All @@ -189,7 +189,7 @@ func TestExprEquals(t *testing.T) {
expr31 := &Expr{
Terms: MustParseTerm("data.foo.bar"),
With: []*With{
&With{
{
Target: MustParseTerm("input"),
Value: MustParseTerm("bar"),
},
Expand All @@ -199,7 +199,7 @@ func TestExprEquals(t *testing.T) {
expr32 := &Expr{
Terms: MustParseTerm("data.foo.bar"),
With: []*With{
&With{
{
Target: MustParseTerm("input.foo"),
Value: MustParseTerm("baz"),
},
Expand Down
Loading

0 comments on commit 28ff561

Please sign in to comment.