2020-04-25 05:22:10 +02:00
|
|
|
' Gambas class file
|
|
|
|
|
|
|
|
''' This class represents an "ok" or "not ok" line in TAP.
|
|
|
|
''' It is generated by TapPrinter and TapParser.
|
|
|
|
|
|
|
|
Export
|
|
|
|
|
2020-05-07 12:57:55 +02:00
|
|
|
'' Possible values for the Directive field
|
|
|
|
Public Enum NONE = 0, TODO = 1, SKIP
|
|
|
|
|
2020-04-25 05:22:10 +02:00
|
|
|
'' The serial number of this test.
|
|
|
|
Public Id As Long = 0
|
|
|
|
'' Whether "ok" or "not ok" was printed.
|
|
|
|
Public Ok As Boolean = False
|
|
|
|
'' The test description.
|
|
|
|
Public Description As String = Null
|
2020-05-07 12:57:55 +02:00
|
|
|
'' The TAP directive constant NONE, TODO or SKIP.
|
|
|
|
Public Directive As Integer = NONE
|
2020-04-25 05:22:10 +02:00
|
|
|
'' The comment after the test description and directive, if any.
|
|
|
|
Public Comment As String = Null
|
|
|
|
'' If this is a subtest summary assertion, here are the child assertions.
|
|
|
|
Public Subtests As New TestAssertion[]
|
|
|
|
|
|
|
|
'' Whether the test counts as succeeded. A "not ok" test can succeed if it was marked as TODO.
|
|
|
|
Property Read Success As Boolean
|
|
|
|
|
|
|
|
Private Function Success_Read() As Boolean
|
|
|
|
|
2020-05-07 12:57:55 +02:00
|
|
|
Return Ok Or (Directive = TODO)
|
2020-04-25 05:22:10 +02:00
|
|
|
|
|
|
|
End
|