forked from everactive/bathtub
-
Notifications
You must be signed in to change notification settings - Fork 0
feature_sequence_interface Class Reference
Bill Moore edited this page Sep 20, 2024
·
5 revisions
Name | Description |
---|---|
Class feature_sequence_interface |
Interface for feature-level context sequences. |
get_feature() |
Gets a reference to the feature object. |
interface class feature_sequence_interface extends pool_provider_interface;
Interface for feature-level context sequences.
The feature-level context sequences implement this interface.
A user step definition sequence can access the current feature-level context sequence through its get_current_feature_sequence()
function.
pure virtual function gherkin_pkg::feature get_feature();
Gets a reference to the feature object.
When Bathtub parses a Gherkin feature file, Bathtub creates a gherkin_pkg::feature
object for it.
The feature-level context sequence contains a reference to the feature object.
A user step definition sequence can retrieve a reference to the feature object with the context sequence's implementation of this function, e.g.:
gherkin_pkg::feature my_feature = get_current_feature_sequence().get_feature();