mirror of https://github.com/ceph/go-ceph
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:
parent
3ad6ad0473
commit
fb7c0f6561
|
@ -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)})
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue