Skip to content

Commit

Permalink
Fix #6
Browse files Browse the repository at this point in the history
  • Loading branch information
akwick committed Feb 25, 2017
1 parent b27bff2 commit a644f94
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions start.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ func main() {
os.Exit(1)
}
} else {
fmt.Printf("Gongrats. Gotcha has not found an error.\n")
fmt.Printf("Your parameters are: \n")
fmt.Printf("path: %s\n", *path)
fmt.Printf("source file: %s\n", sourceFilesFlag)
fmt.Printf("sources and sinks file: %s\n", *ssf)
os.Exit(0)
}
}
Expand Down
3 changes: 2 additions & 1 deletion tests/cmd_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ func TestNoOutput(t *testing.T) {
out, err := exec.Command("../gotcha", "-src=./exampleCode/hello.go").CombinedOutput()
assert.Nil(t, err)
outS := string(out)
assert.Equal(t, outS, "")
assert.Contains(t, outS, "./exampleCode/hello.go")
assert.Contains(t, outS, "./sourcesAndSinks.txt")
}

// Test that:
Expand Down

0 comments on commit a644f94

Please sign in to comment.