Browse Source

Run gofmt

Signed-off-by: Vadim Markovtsev <vadim@sourced.tech>
Vadim Markovtsev 6 years ago
parent
commit
9d06fa8534
2 changed files with 4 additions and 4 deletions
  1. 3 3
      internal/plumbing/tree_diff_test.go
  2. 1 1
      internal/rbtree/rbtree_test.go

+ 3 - 3
internal/plumbing/tree_diff_test.go

@@ -31,10 +31,10 @@ func TestTreeDiffMeta(t *testing.T) {
 func TestTreeDiffConfigure(t *testing.T) {
 	td := fixtureTreeDiff()
 	facts := map[string]interface{}{
-		ConfigTreeDiffEnableBlacklist: true,
+		ConfigTreeDiffEnableBlacklist:     true,
 		ConfigTreeDiffBlacklistedPrefixes: []string{"vendor"},
-		ConfigTreeDiffLanguages: []string{"go"},
-		ConfigTreeDiffFilterRegexp: "_.*",
+		ConfigTreeDiffLanguages:           []string{"go"},
+		ConfigTreeDiffFilterRegexp:        "_.*",
 	}
 	assert.Nil(t, td.Configure(facts))
 	assert.Equal(t, td.Languages, map[string]bool{"go": true})

+ 1 - 1
internal/rbtree/rbtree_test.go

@@ -321,7 +321,7 @@ func TestRandomized(t *testing.T) {
 func TestAllocatorFreeZero(t *testing.T) {
 	alloc := NewAllocator()
 	alloc.malloc()
-	assert.Panics(t, func(){alloc.free(0)})
+	assert.Panics(t, func() { alloc.free(0) })
 }
 
 func TestCloneShallow(t *testing.T) {