mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-12-01 21:44:23 +01:00
options and repo testing
This commit is contained in:
1 parent
25736d115f
commit
9dd624affa
2 files changed
+118
No files matched your search
@@ -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()
|
||||
}
|
||||
Reference in new issue
Block a user