some barebones tests

This commit is contained in:
zricethezav committed 2018-02-28 23:25:04 -06:00
1 parent 0d75136c1c
commit 25736d115f
3 files changed
+3 -4

No files matched your search

+2 -2
View File
@@ -6,7 +6,7 @@ import (
func TestCheckRegex(t *testing.T) {
var results []Leak
opts := &Options{
opts = &Options{
Concurrency: 10,
B64EntropyCutoff: 70,
HexEntropyCutoff: 40,
@@ -22,7 +22,7 @@ func TestCheckRegex(t *testing.T) {
}
for k, v := range checks {
results = doChecks(k, commit, opts, repo)
results = doChecks(k, commit, &repo)
if v != len(results) {
t.Errorf("regexCheck failed on string %s", k)
}