options and repo testing

This commit is contained in:
zricethezav committed 2018-03-01 00:01:13 -06:00
1 parent 25736d115f
commit 9dd624affa
2 files changed
+118

No files matched your search

+29
View File
@@ -0,0 +1,29 @@
package main
import "testing"
func TestNewRepo(t *testing.T) {
// TODO
}
func TestNewLocalRepo(t *testing.T) {
// TODO
}
func TestWriteReport(t *testing.T) {
// TODO
opts, err := defaultOptions()
r := newRepo("fakerepo", "github.com")
sampleLeak := Leak{
Line: "yoo",
Commit: "mycommit",
Offender: "oh boy",
Reason: "hello",
Msg: "msg",
Time: "time",
Author: "lol",
RepoURL: "yooo",
}
r.leaks = []Leak{sampleLeak, sampleLeak}
r.writeReport()
}