bg"GddeZdS)c4eZdZdZeZdZdZdZdZ dZ dS)AdapterzThe adapter processes a TAP test line and updates a unittest result. It is an alternative to TestCase to collect TAP results. c"||_||_dS)N) _filename_line)selffilenamelines \/builddir/build/BUILD/cloudlinux-venv-1.0.7/venv/lib/python3.11/site-packages/tap/adapter.py__init__zAdapter.__init__ s! c|jjS)z/Get the short description for verbeose results.)r descriptionrs r shortDescriptionzAdapter.shortDescription s z%%r c|||jjr'|d|jjjdS|jjrN|jjr||n*| |ttdfdS|jjr| |dS| |dS)zUpdate test result with the lines in the TAP file. Provide the interface that TestCase provides to a suite or runner. N) startTestrskipaddSkip directivereasontodookaddUnexpectedSuccessaddExpectedFailure Exception addSuccess addFailure)rresults r __call__zAdapter.__call__s  :?  NN4!5!< = = = F :? z} P++D1111))$IKK0NOOO F := $   d # # # # # OOF # # # # #r c||ttdf|jd\}}|df|jd<dS)zAdd a failure to the result.N)rrfailures)rrtesterrs r rzAdapter.addFailure(sK$IKK >???OB' c#Rjr c8d|jS)Nz)r)formatrrs r __repr__zAdapter.__repr__0s"))4>)BBBr N) __name__ __module__ __qualname____doc__AssertionErrorfailureExceptionr rrrr(r r rrsv &&&&$$$.)))CCCCCr rN)objectrr/r r r1sC0C0C0C0C0Cf0C0C0C0C0Cr