Uname:Linux ip-10-0-5-176 6.8.0-1057-aws #60~22.04.1-Ubuntu SMP Wed May 27 08:16:59 UTC 2026 x86_64

403WebShell
403Webshell
Server IP : 3.111.61.48  /  Your IP : 216.73.216.67
Web Server : Apache
System : Linux ip-10-0-5-176 6.8.0-1057-aws #60~22.04.1-Ubuntu SMP Wed May 27 08:16:59 UTC 2026 x86_64
User : ubuntu ( 1000)
PHP Version : 8.2.31
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/lib/python3.10/test/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python3.10/test/__pycache__/test_pstats.cpython-310.pyc
o

�9j=
�@sxddlZddlmZddlmZddlmZddlZddlZGdd�dej�Z	Gdd�dej�Z
ed	kr:e��dSdS)
�N)�support)�StringIO)�SortKeyc@seZdZdZdd�ZdS)�AddCallersTestCasez$Tests for pstats.add_callers helper.cCsdddi}ddd�}t�||�}|�|ddd��ddi}ddd�}t�||�}|�|ddd��dS)	N�a)����)����)r�b)rr
rrrrr)�pstats�add_callers�assertEqual)�self�target�source�new_callers�r�'/usr/lib/python3.10/test/test_pstats.py�test_combine_results
s

z'AddCallersTestCase.test_combine_resultsN)�__name__�
__module__�__qualname__�__doc__rrrrrr
src@sLeZdZdd�Zdd�Zdd�Zdd�Zd	d
�Zdd�Zd
d�Z	dd�Z
dS)�
StatsTestCasecCst�d�}t�|�|_dS)Nz
pstats.pck)r�findfiler�Stats�stats)r�
stats_filerrr�setUps
zStatsTestCase.setUpcCs&t�}tj|d�}|�|j|j�dS)N)�stream)rrr �addr!)rr$r!rrr�test_add!szStatsTestCase.test_addcCsLddddd�}|��D]\}}|j�|�|�|jj|jj|d�qdS)N�stdname�calls�time�
cumulative)���rrrr+)�itemsr!�
sort_statsr�	sort_type�sort_arg_dict_default)r�
valid_args�arg_int�arg_strrrr�test_sort_stats_int&s�
��z!StatsTestCase.test_sort_stats_intcCs6dD]}|j�|�|�|jj|jj|d�qdS)N)
r(�ncalls�cumtimer*�filename�line�module�name�nfl�pcallsr'r)�tottimer+�r!r-rr.r/)r�	sort_namerrr�test_sort_stats_string0s
��z$StatsTestCase.test_sort_stats_stringcCs:d}dD]}|j�|�|�|jj|jj|d�qdS)Nr6)�f�fi�fil�file�filen�filena�filenamr6r+r=)r�sortkeyr>rrr�test_sort_stats_partial8s
��z%StatsTestCase.test_sort_stats_partialcCs0|�t|jjdtj�|�t|jjtjd�dS)Nr()�assertRaises�	TypeErrorr!r-r�TIME�rrrr�test_sort_starts_mix@s��z"StatsTestCase.test_sort_starts_mixcCs�dd�}dd�}dd�}t��}|��|�|�|�|��t�|�}|��}t|j�	��}|�
d|�|�
d|�|�
d	|�dS)
NcS�dS�Nrrrrr�pass1I�z3StatsTestCase.test_get_stats_profile.<locals>.pass1cSrNrOrrrrr�pass2JrQz3StatsTestCase.test_get_stats_profile.<locals>.pass2cSrNrOrrrrr�pass3KrQz3StatsTestCase.test_get_stats_profile.<locals>.pass3rPrRrS)�cProfile�Profile�enable�create_statsrr �get_stats_profile�set�
func_profiles�keys�assertIn)rrPrRrS�pr�ps�
stats_profile�funcs_calledrrr�test_get_stats_profileHs
z$StatsTestCase.test_get_stats_profilecCs"|�tjd�|�tjtj�dS)Nr6)rr�FILENAME�assertNotEqual�CALLSrLrrr�test_SortKey_enum[szStatsTestCase.test_SortKey_enumN)rrrr#r&r3r?rHrMrarerrrrrs
r�__main__)
�unittest�testr�iorrrrT�TestCaserrr�mainrrrr�<module>sC�

Youez - 2016 - github.com/yon3zu
LinuXploit