IncludedExcluded

org.specs2.data.IncludedExcluded
trait IncludedExcluded[T]

This trait provides a keep function which will determine if a element T must be kept with regards to:

  • a list of include tags
  • a list of exclude tags
  • a matchFunction which say if the element matches a given tag

The element is kept if it is included and not excluded

  • it is included if the include list is empty or the element matches an including tag
  • it is excluded if the exclude list is not empty and the element matches an excluding tag

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

def exclude: Seq[String]
def include: Seq[String]
def keepFunction: (T, Seq[String]) => Boolean

Concrete methods

def contain(t: T): Boolean
def containFunction: (T, Seq[String]) => Boolean
def isExcluded(t: T): Boolean
def isExcludedTag(t: T): Boolean
def isIncluded(t: T): Boolean
def isIncludedTag(t: T): Boolean
def keep(t: T): Boolean