| OVERVIEW | PACKAGE | CONSTR | FIELDS | METHODS | FRAMES NO FRAMES | INHERITED |
case class DataTable[T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19](val header : TableHeader, val rows : List[DataRow[T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19]], val shouldExecute : Boolean)
extends
ExecutableDataTable with Product
val datatable = "a" | "b" | "c = a + b" |>
1 ! 2 ! 3 |
2 ! 2 ! 4 |
3 ! 2 ! 5 | {
(a: Int, b: Int, c: Int) => c must_== calc.add(a, b)
}
The header defines 3 columns, there are 3 rows of type (Int, Int, Int) and a function taking its values in each row.
The '>' sign added to the header means that the function will be executed on each row when the table is defined. The result
of the execution will be available via a results function returning a string.A DataTable has the following constraints:
def this(rows : List[DataRow[T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19]])
Datatable constructor with an empty header
|
def this(header : TableHeader, rows : List[DataRow[T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19]], shouldExecute : Boolean)
|
| errors |
def errors
|
Seq[Throwable] | ExecutableDataTable |
| execute |
def execute
executes the function on each table row if the function exists
|
DataTable[T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19] | |
| failureAndErrors |
def failureAndErrors
|
List[Throwable] | HasResults |
| failures |
def failures
|
Seq[FailureException] | ExecutableDataTable |
| function |
var function
function to execute on each row
|
() => DataTable[T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19] | |
| hasFailureAndErrors |
def hasFailureAndErrors
|
Boolean | HasResults |
| hasIssues |
def hasIssues
|
Boolean | HasResults |
| isOk |
def isOk
|
Boolean | HasResults |
| issueMessages |
def issueMessages
|
String | HasResults |
| issues |
def issues
|
List[Throwable] | HasResults |
| productArity |
override def productArity
|
Int | |
| productPrefix |
override def productPrefix
|
String | |
| results |
def results
[details]
|
String | |
| skipped |
def skipped
|
Seq[SkippedException] | ExecutableDataTable |
| status |
def status
|
String | HasResults |
| statusAsText |
def statusAsText
|
String | HasResults |
| toHtml |
def toHtml
[details]
|
Elem | |
| | |
def |
closes the table
|
DataTable[T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19] |
| != |
final def !=(arg0 : Any)
|
Boolean | Any |
| != |
final def !=(arg0 : Object)
|
Boolean | AnyRef |
| == |
final def ==(arg0 : Object)
|
Boolean | AnyRef |
| == |
final def ==(arg0 : Any)
|
Boolean | Any |
| asInstanceOf |
final def asInstanceOf[T0]
|
T0 | Any |
| clone |
protected def clone
|
Object | AnyRef |
| eq |
final def eq(arg0 : Object)
|
Boolean | AnyRef |
| equals |
override def equals(arg0 : Any)
|
Boolean | |
| failureFunction |
def failureFunction(table : DataTable[T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19])
This function can be overriden to provide another behaviour upon table failure
|
Unit | |
| finalize |
protected def finalize
|
Unit | AnyRef |
| getClass |
final def getClass
|
Class[Object] | AnyRef |
| hashCode |
override def hashCode
|
Int | |
| isInstanceOf |
final def isInstanceOf[T0]
|
Boolean | Any |
| ne |
final def ne(arg0 : Object)
|
Boolean | AnyRef |
| notify |
final def notify
|
Unit | AnyRef |
| notifyAll |
final def notifyAll
|
Unit | AnyRef |
| productElement |
override def productElement(arg0 : Int)
|
Any | |
| reset |
def reset
|
Unit | ExecutableDataTable |
| synchronized |
final def synchronized[T0](arg0 : T0)
|
T0 | AnyRef |
| toString |
override def toString
[details]
|
String | |
| wait |
final def wait
|
Unit | AnyRef |
| wait |
final def wait(arg0 : Long)
|
Unit | AnyRef |
| wait |
final def wait(arg0 : Long, arg1 : Int)
|
Unit | AnyRef |
| whenFailing |
def whenFailing(f : (DataTable[T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19]) => Unit)
This sets a failing function to use when the table fails
|
DataTable[T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19] | |
| | |
def |[R](f : (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12) => R)
|
DataTable[T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19] | |
| | |
def |[R](f : (T0, T1, T2, T3, T4) => R)
|
DataTable[T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19] | |
| | |
def |[R](f : (T0, T1, T2, T3, T4, T5, T6, T7, T8) => R)
|
DataTable[T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19] | |
| | |
def |[R](f : (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16) => R)
|
DataTable[T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19] | |
| | |
def |[R](f : (T0) => R)
apply a function of one argument to the table
|
DataTable[T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19] | |
| | |
def |[R](f : (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10) => R)
|
DataTable[T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19] | |
| | |
def |[R](f : (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18) => R)
|
DataTable[T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19] | |
| | |
def |[R](f : (T0, T1, T2) => R)
|
DataTable[T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19] | |
| | |
def |[R](f : (T0, T1, T2, T3, T4, T5, T6) => R)
|
DataTable[T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19] | |
| | |
def |[R](f : (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14) => R)
|
DataTable[T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19] | |
| | |
def |(r : DataRow[T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19])
Adds a new datarow to the existing table
|
DataTable[T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19] | |
| | |
def |[R](f : (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11) => R)
|
DataTable[T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19] | |
| | |
def |[R](f : (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19) => R)
|
DataTable[T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19] | |
| | |
def |[R](f : (T0, T1, T2, T3) => R)
|
DataTable[T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19] | |
| | |
def |[R](f : (T0, T1, T2, T3, T4, T5, T6, T7) => R)
|
DataTable[T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19] | |
| | |
def |[R](f : (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15) => R)
|
DataTable[T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19] | |
| | |
def |[R](f : (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9) => R)
|
DataTable[T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19] | |
| | |
def |[R](f : (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17) => R)
|
DataTable[T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19] | |
| | |
def |[R](f : (T0, T1) => R)
|
DataTable[T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19] | |
| | |
def |[R](f : (T0, T1, T2, T3, T4, T5) => R)
|
DataTable[T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19] | |
| | |
def |[R](f : (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13) => R)
|
DataTable[T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19] | |
| |> |
def |>[R](f : (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13) => R)
|
DataTable[T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19] | |
| |> |
def |>[R](f : (T0, T1, T2, T3, T4, T5) => R)
|
DataTable[T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19] | |
| |> |
def |>[R](f : (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9) => R)
|
DataTable[T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19] | |
| |> |
def |>[R](f : (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17) => R)
|
DataTable[T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19] | |
| |> |
def |>[R](f : (T0, T1) => R)
|
DataTable[T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19] | |
| |> |
def |>[R](f : (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11) => R)
|
DataTable[T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19] | |
| |> |
def |>[R](f : (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19) => R)
|
DataTable[T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19] | |
| |> |
def |>[R](f : (T0, T1, T2, T3) => R)
|
DataTable[T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19] | |
| |> |
def |>[R](f : (T0, T1, T2, T3, T4, T5, T6, T7) => R)
|
DataTable[T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19] | |
| |> |
def |>[R](f : (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15) => R)
|
DataTable[T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19] | |
| |> |
def |>(r : DataRow)
Adds a new datarow to the existing table and sets the table for immediate execution
|
DataTable[T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19] | |
| |> |
def |>[R](f : (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12) => R)
|
DataTable[T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19] | |
| |> |
def |>[R](f : (T0, T1, T2, T3, T4) => R)
|
DataTable[T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19] | |
| |> |
def |>[R](f : (T0, T1, T2, T3, T4, T5, T6, T7, T8) => R)
|
DataTable[T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19] | |
| |> |
def |>[R](f : (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16) => R)
|
DataTable[T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19] | |
| |> |
def |>[R](f : (T0) => R)
apply a function of one argument to the table and set the table for execution
|
DataTable[T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19] | |
| |> |
def |>[R](f : (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10) => R)
|
DataTable[T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19] | |
| |> |
def |>[R](f : (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18) => R)
|
DataTable[T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19] | |
| |> |
def |>[R](f : (T0, T1, T2) => R)
|
DataTable[T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19] | |
| |> |
def |>[R](f : (T0, T1, T2, T3, T4, T5, T6) => R)
|
DataTable[T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19] | |
| |> |
def |>[R](f : (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14) => R)
|
DataTable[T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19] |
| OVERVIEW | PACKAGE | CONSTR | FIELDS | METHODS | FRAMES NO FRAMES | INHERITED |