Interface STBuilderFacets.WantsScannersOrValidators
- All Superinterfaces:
STBuilderFacets.Done,STBuilderFacets.WantsDebuggingOptions,STBuilderFacets.WantsValidatorsOrDone
- All Known Subinterfaces:
STBuilderFacets.All,STBuilderFacets.WantsPathsOrScannersOrValidators
- All Known Implementing Classes:
STBuilder
- Enclosing interface:
STBuilderFacets
public static interface STBuilderFacets.WantsScannersOrValidators
extends STBuilderFacets.WantsValidatorsOrDone
-
Method Summary
Modifier and TypeMethodDescriptionmatchNodes(Object... predicates) Attach aNodescanner to this spec test builder by describing the sequence of nodes which are valid, with no extra node types allowed between the specified elements.scanners(STPathLoader... scanners) Attach a set of scanners againstNodesequencesscanners(STNodePredicate predicate) Methods inherited from interface io.nosqlbench.nb.spectest.api.STBuilderFacets.Done
buildMethods inherited from interface io.nosqlbench.nb.spectest.api.STBuilderFacets.WantsDebuggingOptions
debugMethods inherited from interface io.nosqlbench.nb.spectest.api.STBuilderFacets.WantsValidatorsOrDone
validators
-
Method Details
-
scanners
Attach a set of scanners againstNodesequences- Parameters:
scanners-- Returns:
-
scanners
-
matchNodes
Attach a
Nodescanner to this spec test builder by describing the sequence of nodes which are valid, with no extra node types allowed between the specified elements. This is a direct sequence matcher that is checked at each position in the parsed element stream. When a sequence is found, the search is resumed on the next element not included in the result.The predicates can be one of the types supported by
STNodePredicateandSTNodePredicates. These can be wrapped in structural predicate form by using the helpers fromSTPredicateVerbs, particularly with an import likeimport static io.nosqlbench.nb.spectest.traversal.STPredicateVerbs.*;- Parameters:
predicates- The pattern to match- Returns:
- this SpecTestBuilder for builder method chaining
-