Refactor detect, add entropy to all findings (#804)

Refactor `detect`, add `entropy` to all findings
This commit is contained in:
Zachary Rice authored and GitHub committed 2022-03-12 11:50:01 -06:00
1 parent 9326f35380
commit 6e72472b60
24 files changed
+1097 -924

No files matched your search

+1 -1
View File
@@ -49,7 +49,7 @@ func TestGetLocation(t *testing.T) {
}
for _, test := range tests {
loc := getLocation(test.linePairs, test.start, test.end)
loc := location(Fragment{newlineIndices: test.linePairs}, []int{test.start, test.end})
if loc != test.wantLocation {
t.Errorf("\nstartLine %d\nstartColumn: %d\nendLine: %d\nendColumn: %d\nstartLineIndex: %d\nendlineIndex %d",
loc.startLine, loc.startColumn, loc.endLine, loc.endColumn, loc.startLineIndex, loc.endLineIndex)