zmap / zlint

X.509 Certificate Linter focused on Web PKI standards and requirements.
https://zmap.io
Apache License 2.0
361 stars 110 forks source link

All lints need tests #73

Open dadrian opened 7 years ago

dadrian commented 7 years ago

We should have a meta-test, that enforces that any lint file has an associated test file.

zakird commented 7 years ago

I went through and looked at which lints don't have tests by name. Here is the list that we should investigate:

zakird commented 7 years ago

In case it helps, this is the code I used to check:


import sys

e = set()
for l in sys.stdin:
    l = l.strip()
    if "test" not in l:
        e.add(l)
    else:
        l = l.replace("_test", "")
        e.remove(l)

print e