mirror of
https://github.com/priyanshujain/sanderling.git
synced 2026-10-02 19:17:10 +00:00
feat(verifier): expose the property names a loaded spec registered
This commit is contained in:
1 parent
573749f17a
commit
11c1569932
1 file changed
+11
@@ -499,6 +499,17 @@ func (v *Verifier) ExtractorNames() []string {
|
|||||||
return names
|
return names
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// PropertyNames returns the names of the properties the loaded spec registered,
|
||||||
|
// sorted.
|
||||||
|
func (v *Verifier) PropertyNames() []string {
|
||||||
|
names := make([]string, 0, len(v.properties))
|
||||||
|
for name := range v.properties {
|
||||||
|
names = append(names, name)
|
||||||
|
}
|
||||||
|
sort.Strings(names)
|
||||||
|
return names
|
||||||
|
}
|
||||||
|
|
||||||
// PropertyFormulas rebuilds each registered property's formula. The thunks are
|
// PropertyFormulas rebuilds each registered property's formula. The thunks are
|
||||||
// this verifier's own predicates, reading this verifier's extractor state, so
|
// this verifier's own predicates, reading this verifier's extractor state, so
|
||||||
// an evaluator built over a rewritten formula observes exactly what the
|
// an evaluator built over a rewritten formula observes exactly what the
|
||||||
|
|||||||
Reference in new issue
Block a user