StepParsers

StepParsers are using delimiters or regular expressions with groups to extract values from a piece of text and possibly strip it from delimiters if necessary

Companion:
object
class Object
trait Matchable
class Any
object StepParser.type
object StepParsers.type

Type members

Classlikes

class ReadAs(regex: Regex, groups: Regex)

This class creates Given or Then extractors from a regular expression and a function

This class creates Given or Then extractors from a regular expression and a function

Value members

Concrete methods

def apply[T](f: String => T)(using fpr: Regex): DelimitedStepParser[T]
def apply[T](f: (String, String) => T)(using fpr: Regex): DelimitedStepParser[T]
def apply[T](f: (String, String, String) => T)(using fpr: Regex): DelimitedStepParser[T]
def apply[T](f: (String, String, String, String) => T)(using fpr: Regex): DelimitedStepParser[T]
def apply[T](f: (String, String, String, String, String) => T)(using fpr: Regex): DelimitedStepParser[T]
def apply[T](f: (String, String, String, String, String, String) => T)(using fpr: Regex): DelimitedStepParser[T]
def apply[T](f: (String, String, String, String, String, String, String) => T)(using fpr: Regex): DelimitedStepParser[T]
def apply[T](f: (String, String, String, String, String, String, String, String) => T)(using fpr: Regex): DelimitedStepParser[T]
def apply[T](f: (String, String, String, String, String, String, String, String, String) => T)(using fpr: Regex): DelimitedStepParser[T]
def apply[T](f: (String, String, String, String, String, String, String, String, String, String) => T)(using fpr: Regex): DelimitedStepParser[T]
def groupAs(groupRegex: String): ReadAs

factory method to create a Given or a Then element from a regex, using a regex denoting groups to extract

factory method to create a Given or a Then element from a regex, using a regex denoting groups to extract

def readAs(regex: String): ReadAs

factory method to create a Given or a Then element from a regex

factory method to create a Given or a Then element from a regex

def seq[T](f: Seq[String] => T)(using fpr: Regex): DelimitedStepParser[T]

Concrete fields

Givens

Givens

given stepParserRegex: Regex