trufflehog/hack/generate/test.sh
Dustin Decker 86c2eb507b Adding detectors (#46)
* rename secret

* Add supporting docs and tooling for adding new detectors
2022-03-04 08:39:22 -08:00

16 lines
321 B
Bash
Executable file

#!/usr/bin/env bash
set -eu
function cleanup {
rm -rf pkg/detectors/test
}
trap cleanup EXIT
export CGO_ENABLED=0
export FORCE_PASS_DIFF=true
echo "████████████ Testing generate Detector"
go run hack/generate/generate.go detector Test
go test ./pkg/detectors/test -benchmem -bench .
echo ""