Skip to content

Commit

Permalink
Increase coverage #13
Browse files Browse the repository at this point in the history
  • Loading branch information
kicdu committed Jul 16, 2017
1 parent 9d821b6 commit 416ee3d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
15 changes: 15 additions & 0 deletions app/tlsh_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,21 @@ func TestMainHash(t *testing.T) {
Main()
}

func TestMainHashError(t *testing.T) {
version = false
file = "../tests/test_file_666"
raw = false
Main()
}

func TestMainCompare(t *testing.T) {
version = false
file = "../tests/test_file_1"
compare = "../tests/test_file_2"
raw = false
Main()
}

func TestMainHelp(t *testing.T) {
version = false
file = ""
Expand Down
1 change: 1 addition & 0 deletions tlsh_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ var (
filenameB string
diff int
}{
{"tests/test_file_1", "tests/test_file_1", 0},
{"tests/test_file_1", "tests/test_file_2", 418},
{"tests/test_file_1", "tests/test_file_8_lena.png", 1014},
{"tests/test_file_3", "tests/test_file_1", 374},
Expand Down

0 comments on commit 416ee3d

Please sign in to comment.