Skip to content

Commit

Permalink
licensecheck: remove hack in TestMultiCoverage
Browse files Browse the repository at this point in the history
This was needed before the wildcards went in.
  • Loading branch information
rsc committed Feb 13, 2020
1 parent 8385fdb commit f91ba25
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions coverage_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,6 @@ func checkMatch(t *testing.T, m Match, name string, prevEnd int) {
length := len(lic.doc.text)
// There is some fudge factor in the match lengths because of terminal spaces, so be forgiving.
min, max := length-5, length
if name == "BSD-2-Clause" {
min = length - 40
}
if n := m.End - m.Start; n < min || max < n {
t.Errorf("match for %s is %d bytes long; expected %d", name, m.End-m.Start, length)
}
Expand Down

0 comments on commit f91ba25

Please sign in to comment.