package Ġde . jos hu agle it ze . test files . spe k Ċ Ċ import Ġde . jos hu agle it ze . test files . Default Test Files Ċ import Ġorg . spe k framework . spe k 2 . lifecycle . Execution Result Ċ import Ġorg . spe k framework . spe k 2 . lifecycle . Group Scope Ċ import Ġorg . spe k framework . spe k 2 . lifecycle . Lifecycle Listener Ċ import Ġorg . spe k framework . spe k 2 . lifecycle . Scope Ċ import Ġorg . spe k framework . spe k 2 . lifecycle . Test Scope Ċ import Ġorg . spe k framework . spe k 2 . runtime . scope . Scope Impl Ċ Ċ internal Ġclass ĠSpe k Test Files Adapter Ġinternal Ġconstructor ( private Ġval Ġtest Files : ĠDefault Test Files ): ĠLifecycle Listener Ġ{ Ċ ĉ override Ġfun Ġbefore Execute Group ( group : ĠGroup Scope ) Ġ= Ġtest Files . enter Scope ( name Of ( group )) ĊĊ ĉ override Ġfun Ġbefore Execute Test ( test : ĠTest Scope ) Ġ= Ġtest Files . enter Scope ( name Of ( test )) ĊĊ ĉ override Ġfun Ġafter Execute Group ( group : ĠGroup Scope , Ġresult : ĠExecution Result ) Ġ= Ġtest Files . leave Scope ( convert ( result )) ĊĊ ĉ override Ġfun Ġafter Execute Test ( test : ĠTest Scope , Ġresult : ĠExecution Result ) Ġ= Ġtest Files . leave Scope ( convert ( result )) ĊĊ ĉ private Ġfun Ġname Of ( scope : ĠScope ) Ġ= Ġwhen Ġ( scope ) Ġ{ Ċĉ ĉ is ĠScope Impl Ġ-> Ġscope . id . name Ċĉ ĉ is ĠGroup Scope Ġ-> Ġ" unknown Ġgroup " Ċĉ ĉ is ĠTest Scope Ġ-> Ġ" unknown Ġtest " Ċĉ ĉ else Ġ-> Ġ" unknown Ġscope " Ċ ĉ } ĊĊ ĉ private Ġfun Ġconvert ( result : ĠExecution Result ) Ġ= Ġwhen Ġ( result ) Ġ{ Ċĉ ĉ is ĠExecution Result . Success Ġ-> ĠDefault Test Files . Scope Result . Success Ċĉ ĉ is ĠExecution Result . Failure Ġ-> ĠDefault Test Files . Scope Result . Failure Ċ ĉ } Ċ } Ċ