bg ddlmZddlmZddlmZmZddlmZddl m Z ddl m Z erddl mZGdd e ZGd d e ZGd d e ZdS)) annotations)StringIO)getcwdsep) TYPE_CHECKING)Message) BaseReporter)SectioncVeZdZUdZded<ddZddZdd Zdd ZddZ ddZ ddZ dS)GenericTestReporterz%Reporter storing plain text messages.routreturnNonecdttz|_|dSN)rrpath_strip_prefixresetselfs t/builddir/build/BUILD/cloudlinux-venv-1.0.7/venv/lib/python3.11/site-packages/pylint/testutils/reporter_for_tests.py__init__zGenericTestReporter.__init__s%'-hhn c:t|_g|_dSr)rr messagesrs rrzGenericTestReporter.resets::') rmsgrc:|j|dS)z8Append messages to the list of messages of the reporter.N)rappend)rrs rhandle_messagez"GenericTestReporter.handle_message!s S!!!!!rstrc fg}|jD]J}d}|jr d|j}||jdd|jd|d|jK||D]}t||j|j }| |S)z5Format and print messages in the context of the path.:rz>3z: )file) robjrmsg_idlinersortprintr getvaluer)rrrr$messageresults rfinalizezGenericTestReporter.finalize%s = N NCCw $##'mm OOsz!}LLsxLLCLL37LL M M M M  * *G ' ) ) ) ) )""$$  rmodulefilepath str | NonecdSrrr-r.s ron_set_current_modulez)GenericTestReporter.on_set_current_module6 rlayoutr cdS)zIgnore layouts.Nr1rr5s rdisplay_reportsz#GenericTestReporter.display_reports;rcdSrr1r7s r_displayzGenericTestReporter._display>r4rN)rr)rrrr)rrr-rr.r/rrr5r rr) __name__ __module__ __qualname____doc____annotations__rrrr,r3r8r;r1rrr r s//MMM ****"""""          rr ceZdZd dZd d Zd S)MinimalTestReporterr-rr.r/rrcg|_dSr)rr2s rr3z)MinimalTestReporter.on_set_current_moduleCs  rr5r cdSrr1r7s rr;zMinimalTestReporter._displayFr4rNr<r=)r>r?r@r3r;r1rrrDrDBs<      rrDceZdZddZddZdS) FunctionalTestReporterr5r rrcdS)z.Ignore layouts and don't call self._display().Nr1r7s rr8z&FunctionalTestReporter.display_reportsKr9rcdSrr1r7s rr;zFunctionalTestReporter._displayNr4rNr=)r>r?r@r8r;r1rrrHrHJs<====      rrHN) __future__riorosrrtypingrpylint.messagerpylint.reportersr pylint.reporters.ureports.nodesr r rDrHr1rrrRs #""""" """"""))))))8777777- - - - - ,- - - `     ,        \     r