Skip to content

Commit

Permalink
run format and update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ezekg committed Nov 11, 2015
1 parent 62993a8 commit 03b680a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions hound_test.go
Expand Up @@ -2,9 +2,9 @@ package main

import (
"github.com/ezekg/git-hound/Godeps/_workspace/src/sourcegraph.com/sourcegraph/go-diff/diff"
"testing"
"io/ioutil"
"os"
"io/ioutil"
"os"
"testing"
)

func TestDiffs(t *testing.T) {
Expand Down Expand Up @@ -35,15 +35,15 @@ index 000000..000000 000000
t.Fatalf("Should fail - %s", err)
}

// Should warn
// Should pass but output warning
fileName, hunk = getDiff(`diff --git a/test2.go b/test2.go
index 000000..000000 000000
--- a/test2.go
+++ b/test2.go
@@ -1,2 +3,4 @@
+// Username: something-secret`)
r, w, _ := os.Pipe()
os.Stdout = w
os.Stdout = w

if err := h.Sniff(fileName, hunk); err != nil {
w.Close()
Expand All @@ -52,7 +52,7 @@ index 000000..000000 000000
}

w.Close()
out, _ := ioutil.ReadAll(r)
out, _ := ioutil.ReadAll(r)
os.Stdout = rescueStdout

if len(out) <= 0 {
Expand Down

0 comments on commit 03b680a

Please sign in to comment.