Update entropy noise reduction

Instead of reducing noise by default, there's a new flag called
`--noise-reduction` to enable that.
This commit is contained in:
Cristhian Amaya committed 2018-12-10 16:24:53 +01:00
1 parent ea49078ffd
commit 68c2a18f6f
3 files changed
+55 -31

No files matched your search

+18
View File
@@ -590,6 +590,15 @@ func TestAuditRepo(t *testing.T) {
testOpts: Options{
Entropy: 4.7,
},
numLeaks: 6,
},
{
repo: leaksRepo,
description: "leaks present with entropy",
testOpts: Options{
Entropy: 4.7,
NoiseReduction: true,
},
numLeaks: 2,
},
{
@@ -611,6 +620,15 @@ func TestAuditRepo(t *testing.T) {
{
repo: leaksRepo,
description: "toml entropy range",
numLeaks: 298,
configPath: path.Join(configsDir, "entropy"),
},
{
repo: leaksRepo,
testOpts: Options{
NoiseReduction: true,
},
description: "toml entropy range",
numLeaks: 58,
configPath: path.Join(configsDir, "entropy"),
},