const classxfant::TestCase
sys::Obj xfant::TestCase : xfant::Xtest
Creates a test for a method.
The method must:
- have a name that starts with "test",
- not be abstract.
Calls
method
on thetest
instance and returns resultvirtual override Str classname()
The classname of wich this test belongs.
static new fromStr(Str pattern, Bool checked := true)
Matches
pattern
withpod::type.slot
. If matches, returns theSlot
, if the string is invalid returns an error ifchecked
istrue
ornull
otherwise.Bool isIgnored()
new make(Method method)
Constructor
Test makeTest()
Create the
Test
instance specified bytype
const Method method
Method to test
virtual override Str name()
The name of the test
const static Regex re := "(\w+)[:]{2}(\w+)[.]{1}(\w+)".toRegex
Regex to parse a
pod::type.slot
pattern.virtual override Str toStr()
Name of the test.
Type type()
Type of the class where the method belongs