implements: renamed "covered" to "found"

To be clearer about what the tool detects, rename "covered" to "found"
such as not to indicate an undocumented but used function is considered
"covered". Future arguments about what "covered" really means to be
scheduled at a later date. :-)

Signed-off-by: John Mulligan <jmulligan@redhat.com>
This commit is contained in:
John Mulligan 2020-05-08 10:34:34 -04:00 committed by John Mulligan
parent 3ad6ad0473
commit fb7c0f6561
2 changed files with 3 additions and 3 deletions

View File

@ -47,7 +47,7 @@ type jrPackage struct {
Missing int `json:"missing"`
Deprecated int `json:"deprecated"`
} `json:"summary"`
Covered []jrFunction `json:"covered,omitempty"`
Found []jrFunction `json:"found,omitempty"`
Missing []jrFunction `json:"missing,omitempty"`
}
@ -90,7 +90,7 @@ func collectFuncs(jp *jrPackage, ii *Inspector) {
if n := ii.visitor.docMap[cf.Name]; n != "" {
refm[n] = true
}
jp.Covered = append(jp.Covered,
jp.Found = append(jp.Found,
jrFunction{cf.Name, jrFlags(flags), mkeys(refm)})
}
}

View File

@ -78,7 +78,7 @@ func (r *TextReport) Report(name string, ii *Inspector) error {
tags = " (" + strings.TrimSpace(tags) + ")"
}
}
fmt.Printf(" Covered: %s%s\n", cf.Name, tags)
fmt.Printf(" Found: %s%s\n", cf.Name, tags)
}
}
for _, cf := range ii.expected {