mirror of
https://github.com/dobin/avred
synced 2026-06-08 13:54:13 +00:00
fix: more zero matches fixes
This commit is contained in:
@@ -166,7 +166,7 @@ def scanFile(args, scanner):
|
||||
# convert IntervalTree Matches
|
||||
logging.info("Found {} matches".format(len(matchesIt)))
|
||||
if len(matchesIt) == 0:
|
||||
logging.warn("No matches found. Try some other options?")
|
||||
logging.warning("No matches found. Try some other options?")
|
||||
matches = convertMatchesIt(matchesIt)
|
||||
|
||||
verification = None
|
||||
|
||||
@@ -35,6 +35,9 @@ def verify(file, matches: List[Match], scanner) -> Verification:
|
||||
def verificationAnalyzer(verifications: List[VerificationEntry]) -> MatchConclusion:
|
||||
"""Do some analysis on the verifications, and return the result"""
|
||||
verifyResults = []
|
||||
if len(verifications) == 0:
|
||||
matchConclusions = MatchConclusion(verifyResults)
|
||||
return matchConclusions
|
||||
|
||||
matchCount = len(verifications[0].matchTests)
|
||||
|
||||
@@ -111,6 +114,9 @@ def runVerifications(file, matches: List[Match], scanner) -> List[VerificationEn
|
||||
verificationRun.matchTests.append(toTestEntry('', result))
|
||||
verificationRuns.append(verificationRun)
|
||||
|
||||
if len(matches) == 1:
|
||||
return verificationRuns
|
||||
|
||||
# Incremental, Middle
|
||||
verificationRun = VerificationEntry(
|
||||
index=2,
|
||||
|
||||
Reference in New Issue
Block a user