bg bddlmZddlZddlmZddlmZdZ dZ hdZ hdZ dd Z ddZ dS)) annotationsN)Path)FunctionalTestFile0>ext regression regression_02deprecated_relative_import>r docparamsr input_dir Path | strreturnlist[FunctionalTestFile]czg}tt|tj|D]\}}}|dr|||D]@}|dkr8|dr#|t||A|S)z*Get all functional tests in the input_dir. __pycache__z __init__.py.py)!_check_functional_tests_structureroswalkendswithsortappendr)r suitedirpathdirnames filenamesfilenames /builddir/build/BUILD/cloudlinux-venv-1.0.7/venv/lib/python3.11/site-packages/pylint/testutils/functional/find_functional_tests.py(get_functional_test_files_from_directoryr !s E%d9oo666(* (:(:DD$9   M * *   ! D DH=((X->->u-E-E( /BBCCC D L directoryrNonect|jdrdSt}t}|D]}|r;|jdkr/|jds||Q|r$||t|t|tks)J|ddt|dtdz|D]}|j |j ddz }|rJ|d |d t|j jd ksc|j jtvrP|j j jt vr8|j|j jsJ|d |j dS) z?Check if test directories follow correct file/folder structure._Nrz* contains too many functional tests files (z > z).rz should go in .z should not go in )rstem startswithsetiterdiris_filesuffixaddis_dirrlen!REASONABLY_DISPLAYABLE_VERTICALLYparentsplitexistsIGNORED_PARENT_DIRSIGNORED_PARENT_PARENT_DIRS)r"filesdirs file_or_dirfile possible_dirs rrr4s I&&s++uuEeeD!((**;;     ;!U**;3C3N3Ns3S3S* +&&&    ! ! ; HH[ ! ! ! -k : : : u::: : : : @@@ Bc%jj B B> B B B C ; : :  8 8{TY__S%9%9!%<< &&((PPT*P*P*P*P*PPP(DK$%%**  (;;; "'/III9''   8 877$+77 8 8 8 8r!)r rrr)r"rrr#) __future__rrpathlibr%pylint.testutils.functional.test_filerr2SHOULD_BE_IN_THE_SAME_DIRECTORYr6r7r rr!rrBs #""""" DDDDDD$&!L"#H 8 C&#8#8#8#8#8#8r!