Cucumber.Discovery.DiscoveryResult (Cucumber v1.0.0)

View Source

Result struct returned by Cucumber.Discovery.discover/1.

Summary

Types

Registry keys identify the pattern kind and pattern — {:expression, source} for cucumber expressions, {:regex, {source, opts}} for regular expressions. Regexes are keyed by source and options rather than the %Regex{} struct because identical regexes do not compile to structurally-equal re_pattern binaries.

t()

Types

registry_key()

@type registry_key() :: {:expression, String.t()} | {:regex, {String.t(), term()}}

Registry keys identify the pattern kind and pattern — {:expression, source} for cucumber expressions, {:regex, {source, opts}} for regular expressions. Regexes are keyed by source and options rather than the %Regex{} struct because identical regexes do not compile to structurally-equal re_pattern binaries.

t()

@type t() :: %Cucumber.Discovery.DiscoveryResult{
  features: [Gherkin.Feature.t()],
  hook_modules: [module()],
  parameter_types: Cucumber.Expression.custom_types(),
  step_modules: [module()],
  step_registry: %{required(registry_key()) => {module(), map()}}
}