/opt/cloudlinux/venv/lib/python3.11/site-packages/gitdb/test/__pycache__
NameSizeModeActions
lib.cpython-311.pyc89400644editdlrm
test_base.cpython-311.pyc40940644editdlrm
test_example.cpython-311.pyc22270644editdlrm
test_pack.cpython-311.pyc126930644editdlrm
test_stream.cpython-311.pyc81080644editdlrm
test_util.cpython-311.pyc55520644editdlrm
__init__.cpython-311.pyc2100644editdlrm
Edit: /opt/cloudlinux/venv/lib/python3.11/site-packages/gitdb/test/__pycache__/lib.cpython-311.pyc (8940B)
§ ÁÔ/†”3qãó—dZddlmZddlZddlZddlmZddlmZddlZddl Z ddl Z ddl Z ddl Z ddl Z ddlZddlmZGd„de j¦«Zd „Zd „Zdd „Zdd„Zdd„Zd„Zdd„ZGd„d¦«ZGd„de¦«ZdS)zUtilities used in ODB testingé)ÚOStreamN)Úarray)ÚBytesIO)Úwrapscó6‡—eZdZdZdZeˆfd„¦«ZˆxZS)ÚTestBasezÚBase class for all tests TestCase providing access to readonly repositories using the following member variables. * gitrepopath * read-only base path of the git source repository, i.e. .../git/.git ÚGITDB_TEST_GIT_REPO_BASEc óä•— t¦« ¦«n#t$rYnwxYwtj |j¦«|_|jsptj d|j¦«tj j }tj   |||t¦«¦«¦«d¦«|_|j d¦«sJ‚dS)NzpYou can set the %s environment variable to a .git repository of your choice - defaulting to the gitdb repositoryz.git)ÚsuperÚ setUpClassÚAttributeErrorÚosÚenvironÚgetÚk_env_git_repoÚ gitrepopathÚloggingÚinfoÚpathÚdirnameÚjoinÚ__file__Úendswith)ÚclsÚospdÚ __class__s €ú`/builddir/build/BUILD/cloudlinux-venv-1.0.12/venv/lib/python3.11/site-packages/gitdb/test/lib.pyr zTestBase.setUpClass(sïø€ð Ý ‰GŒG× Ò Ñ Ô Ð Ð øÝð ð ð Ø ˆDð øøøõœ*Ÿ.š.¨Ô);Ñ<Ô<ˆŒØŒð OÝ ŒLðCðEHôEWñ Xô Xð Xå”7”?ˆDÝ œgŸlšl¨4¨4°°°T°T½(±^´^Ñ0DÔ0DÑ+EÔ+EÀvÑNÔNˆCŒOàŒ×'Ò'¨Ñ/Ô/Ð/Ð/Ð/Ð/Ð/s ƒ $¤ 1°1)Ú__name__Ú __module__Ú __qualname__Ú__doc__rÚ classmethodr Ú __classcell__)rs@rrrsUø€€€€€ððð0€Nðð 0ð 0ð 0ð 0ñ„[ð 0ð 0ð 0ð 0ð 0órcó*‡—ˆfd„}‰j|_|S)zŒCreate a temporary directory which can be written to, remove it if the test succeeds, but leave it otherwise to aid additional debuggingc óÔ•—tj‰j¬¦«}tj|¦«d} ‰||¦«|s(t j¦«tj|¦«SS#t$rDtj   dt|¦«j›d‰j›d|›d�¦«d}‚wxYw#|s(t j¦«tj|¦«wwxYw)N)ÚprefixFzTest ú.z failed, output is at ú T)ÚtempfileÚmktemprrÚmkdirÚgcÚcollectÚshutilÚrmtreeÚ ExceptionÚsysÚstderrÚwriteÚtype)ÚselfrÚkeepÚfuncs €rÚwrapperz"with_rw_directory..wrapperAsø€ÝŒ d¤mÐ4Ñ4Ô4ˆÝ Œ�‰ŒˆØˆð $ð Ø�t˜D $Ñ'Ô'ðð $Ý” ‘ ” � Ý” ˜dÑ#Ô#Ð#Ð#ð $øõð ð ð Ý” × Ò Ð!n­¨d©¬Ô)<Ð!nÐ!n¸t¼}Ð!nÐ!nÐdhÐ!nÐ!nÐ!nÑoÔoÐoØ�Øð øøøøðð $Ý” ‘ ” � Ý” ˜dÑ#Ô#Ð#Ð#ð $øøøs´ A*Á*AB8Â8B;Â;,C'©r©r8r9s` rÚwith_rw_directoryr<=s-ø€ð$ð$ð$ð$ð$ð,”}€GÔØ €Nr$có*‡—ˆfd„}‰j|_|S)zŒFunction that provides a path into which the packs for testing should be copied. Will pass on the path to the actual function afterwardscó^•—td¦«}t||d¬¦«‰||¦«S)Nzpacks/*T)Ú hard_link_ok)Ú fixture_pathÚcopy_files_globbed)r6rÚ src_pack_globr8s €rr9zwith_packs_rw..wrapper_s7ø€Ý$ YÑ/Ô/ˆ ݘ=¨$¸TÐBÑBÔBÐB؈t�D˜$ÑÔÐr$r:r;s` rÚ with_packs_rwrC[s-ø€ð ð ð ð ð ð ”}€GÔØ €Nr$Úcóˆ—tj tj t¦«d|¦«S)z¦:return: absolute path into the fixture directory :param relapath: relative path into the fixtures directory, or '' to obtain the fixture directory itselfÚfixtures)rrrrr)Úrelapaths rr@r@ms*€õ Œ7�<Š<�œŸš­Ñ1Ô1°:¸xÑ HÔ HÐHr$Fcó~—tj|¦«D]§}|rŽttd¦«rytj |tj |¦«¦«} tj||¦«Œm#t$rtj ||¦«YŒŽwxYwtj ||¦«Œ¨dS)zÆCopy all files found according to the given source glob into the target directory :param hard_link_ok: if True, hard links will be created if possible. Otherwise the files will be copiedÚlinkN) ÚglobÚhasattrrrrÚbasenamerIÚOSErrorr/Úcopy)Ú source_globÚ target_dirr?Úsrc_fileÚtargets rrArAtsÉ€õ”I˜kÑ*Ô*ð .ð .ˆØ ð .�G¥B¨Ñ/Ô/ð .Ý”W—\’\ *­b¬g×.>Ò.>¸xÑ.HÔ.HÑIÔIˆFð 2Ý”˜ &Ñ)Ô)Ð)Ð)øÝð 2ð 2ð 2Ý” ˜H jÑ1Ô1Ð1Ð1Ð1ð 2øøøõ ŒK˜ *Ñ -Ô -Ð -Ð -ð .ð .sÁ,BÂB$Â#B$có¼—|dz}t|¦«}|r#t|¦«}tj|¦«t d|¦«}| ¦«S)zb:return: string with given size in bytes :param randomize: try to produce a very random streaméÚi)ÚrangeÚlistÚrandomÚshufflerÚtobytes)Ú size_in_bytesÚ randomizeÚ actual_sizeÚproducerÚas rÚ make_bytesr`†s[€ð  1Ñ$€KÝ�[Ñ!Ô!€HØð!ݘ‘>”>ˆÝŒ�xÑ Ô Ð å ˆc�8ÑÔ€AØ �9Š9‰;Œ;Ðr$cóV—dt|¦«z}| d¦«|zS)z0:return: bytes resembling an uncompressed objectzblob %iÚascii)ÚlenÚencode)r5ÚdataÚodatas rÚ make_objectrg“s)€à �#˜d™)œ)Ñ #€EØ �<Š<˜Ñ Ô  4Ñ 'Ð'r$có^—t||¦«}t|¦«t|¦«fS)z`:return: tuple(size_of_stream, stream) :param randomize: try to produce a very random stream)r`rcr)r[r\Úds rÚmake_memory_filerj™s*€õ �= )Ñ,Ô,€AÝ ˆq‰6Œ6•7˜1‘:”:Ð Ðr$có&—eZdZd„Zd„Zd„Zd„ZdS)Ú DummyStreamcó0—d|_d|_d|_dS)NFr)Úwas_readÚbytesÚclosed©r6s rÚ__init__zDummyStream.__init__¦s€ØˆŒ ؈Œ ؈Œ ˆ ˆ r$có"—d|_||_dS©NT)rnro)r6Úsizes rÚreadzDummyStream.read«s€ØˆŒ ؈Œ ˆ ˆ r$có—d|_dSrt)rprqs rÚclosezDummyStream.close¯s €ØˆŒ ˆ ˆ r$có—|jsJ‚dS©N)rnrqs rÚ_assertzDummyStream._assert²s€ØŒ}ÐЈ}ÐÐr$N)rrr rrrvrxr{©r$rrlrl¤sP€€€€€ðððð ððððððððððr$rlcó—eZdZd„Zd„ZdS)Ú DeriveTestcóH—| d¦«|_||_dS)NÚmyarg)Úpopr€Úargs)r6Úshar5ruÚstreamr‚Úkwargss rrrzDeriveTest.__init__¸s €Ø—Z’Z Ñ(Ô(ˆŒ ؈Œ ˆ ˆ r$có*—|jsJ‚|jsJ‚dSrz)r‚r€rqs rr{zDeriveTest._assert¼s"€ØŒyÐЈyØŒzÐЈzÐÐr$N)rrr rrr{r|r$rr~r~¶s2€€€€€ððððððððr$r~)rD)F)r!Úgitdbrr2rXrÚiorrJÚunittestr*r/rr-rÚ functoolsrÚTestCaserr<rCr@rAr`rgrjrlr~r|r$rúrŒs±ðð $Ð#ØÐÐÐÐÐà € € € Ø € € € ØÐÐÐÐÐàÐÐÐÐÐà € € € Ø€€€Ø€€€Ø € € € Ø € € € Ø € € € Ø€€€ØÐÐÐÐÐð 0ð0ð0ð0ð0ˆxÔ ñ0ô0ð0ðFððð< ð ð ð$IðIðIðIð .ð .ð .ð .ð$ ð ð ð ð(ð(ð(ð ððððððððñôðð$ðððð�ñôðððr$