package Ġcom . bk ahl ert . kom mon s . test Ċ Ċ import Ġcom . bk ahl ert . kom mon s . print Test Execution Status Ċ import Ġcom . bk ahl ert . kom mon s . runtime . Ansi Support . NONE Ċ import Ġcom . bk ahl ert . kom mon s . test . junit . Test Name . Companion . test Name Ċ import Ġcom . bk ahl ert . kom mon s . text . ANSI Ċ import Ġcom . bk ahl ert . kom mon s . text . quoted Ċ import Ġorg . junit . jupiter . api . extension . Condition Evaluation Result Ċ import Ġorg . junit . jupiter . api . extension . Execution Condition Ċ import Ġorg . junit . jupiter . api . extension . Extend With Ċ import Ġorg . junit . jupiter . api . extension . Extension Context Ċ import Ġkotlin . annotation . Annotation Retention . RUNTIME Ċ import Ġkotlin . annotation . Annotation Target . AN NOT ATION _ CLASS Ċ import Ġkotlin . annotation . Annotation Target . CLASS Ċ import Ġkotlin . annotation . Annotation Target . FUNCTION Ċ import Ġkotlin . annotation . Annotation Target . PROPERTY _ GET TER Ċ import Ġkotlin . annotation . Annotation Target . PROPERTY _ SET TER Ċ Ċ @ Target ( AN NOT ATION _ CLASS , ĠFUNCTION , ĠPROPERTY _ GET TER , ĠPROPERTY _ SET TER , ĠCLASS ) Ċ @ Retention ( RUNTIME ) Ċ @ Extend With ( Ansi Condition :: class ) Ċ annotation Ġclass ĠAn si Re qu iring Ċ Ċ /** Ċ Ġ* ĠCondition Ġthat Ġdisables Ġthe Ġtest Ġif Ġno Ġ[ ANSI ] Ġsupport Ġwas Ġdetected . Ċ Ġ*/ Ċ class ĠAn si Condition Ġ: ĠExecution Condition Ġ{ ĊĊĠĠĠ Ġoverride Ġfun Ġevaluate Execution Condition ( context : ĠExtension Context ): ĠCondition Evaluation Result Ġ= ĊĠĠĠĠĠĠĠ Ġcontext . test Name . let Ġ{ Ġtest Name Ġ-> ĊĠĠĠĠĠĠĠĠĠĠĠ Ġif Ġ( ansi Supported ) ĠCondition Evaluation Result . enabled (" Test Ġ${ test Name . quoted } Ġenabled Ġbecause ĠANSI Ġis Ġsupported .") ĊĠĠĠĠĠĠĠĠĠĠĠ Ġelse ĠCondition Evaluation Result . disabled (" Test Ġ${ test Name . quoted } Ġdisabled Ġbecause ĠANSI Ġis ĠNOT Ġsupported .") ĊĠĠĠĠĠĠĠ Ġ} ĊĊĠĠĠ Ġcompanion Ġobject Ġ{ ĊĊĠĠĠĠĠĠĠ Ġprivate Ġval Ġansi Supported : ĠBoolean Ġby Ġlazy Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġval Ġsupport Ġ= Ġcom . bk ahl ert . kom mon s . runtime . ansi Support ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ( support Ġ!= ĠNONE ). also Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġprint Test Execution Status (" ANSI Ġsupport : Ġ$ support ") Ġ{ Ġif Ġ( it ) Ġgreen Ġelse Ġyellow Ġ} ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ } Ċ