Ë
    pPêjÒ  ã                  ó¤   — d Z ddlmZ ddlZddlmZ ddlmZ ddl	m
Z
 ddlmZmZ ddlmZ dd	lmZmZmZmZmZmZ dd
lmZ dgZ G d„ de«      Zy)z+Test cases for capsule dependency analysis.é    )ÚannotationsN)ÚCompileError)Útest_temp_dir)ÚDataDrivenTestCase)Úfind_class_dependenciesÚfind_implicit_op_dependencies)ÚCompilerOptions)ÚICODE_GEN_BUILTINSÚMypycDataSuiteÚassert_test_outputÚbuild_ir_for_single_file2Ú%infer_ir_build_options_from_test_nameÚuse_custom_builtins)Úlower_irzcapsule-deps.testc                  ó   — e Zd ZeZeZdd„Zy)ÚTestCapsuleDepsc                óÚ  — t        |j                  «      }|€y t        t        j                  j                  | j                  t        «      |«      5  	 t        |j                  |«      \  }}}}t        «       }|j                  D ]G  }t        «       }t        ||«       t        |«      }|sŒ'|D ]  }	|j                  t!        |	«      «       Œ ŒI |j"                  D ]1  }
t%        |
«      }|sŒ|D ]  }	|j                  t!        |	«      «       Œ Œ3 |rt'        |«      ndg}t-        ||d|j.                  «       d d d «       y # t(        $ r}|j*                  }Y d }~Œ;d }~ww xY w# 1 sw Y   y xY w)NzNo depszInvalid test output)r   Únamer   ÚosÚpathÚjoinÚdata_prefixr
   r   ÚinputÚsetÚ	functionsr	   r   r   ÚaddÚreprÚclassesr   Úsortedr   Úmessagesr   Úoutput)ÚselfÚtestcaseÚoptionsÚ	module_irÚ_Úall_depsÚfnÚcompiler_optionsÚdepsÚdepÚclÚactualÚes                úa/home/oem/CyberBrain26-unified/.venv/lib/python3.12/site-packages/mypyc/test/test_capsule_deps.pyÚrun_casezTestCapsuleDeps.run_case   sX  € Ü7¸¿¹ÓFˆØˆ?àÜ ¤§¡§¡¨d×.>Ñ.>Ô@RÓ!SÐU]Ó^ñ 	YðGÜ%>¸x¿~¹~ÈwÓ%WÑ"�	˜1˜a ô &)£U�Ø#×-Ñ-ò 4�BÜ'6Ó'8Ð$Ü˜RÐ!1Ô2Ü8¸Ó<�DÚØ#'ò 4˜CØ$ŸL™L¬¨c«Õ3ñ4ð4ð $×+Ñ+ò 4�BÜ2°2Ó6�DÚØ#'ò 4˜CØ$ŸL™L¬¨c«Õ3ñ4ð4ñ
 .6œ Ô)¸I¸;�ä˜x¨Ð1FÈÏÉÔX÷+	Yð 	Yøô  ò $ØŸ™•ûð$ú÷	Yð 	YúsC   ÁE!ÁD?Á.<E!Â+?E!Ã+AE!Ä?	EÅEÅE!ÅEÅE!Å!E*N)r#   r   ÚreturnÚNone)Ú__name__Ú
__module__Ú__qualname__Úfilesr   Ú	base_pathr0   © ó    r/   r   r      s   „ Ø€EØ€IôYr9   r   )Ú__doc__Ú
__future__r   Úos.pathr   Úmypy.errorsr   Úmypy.test.configr   Úmypy.test.datar   Úmypyc.analysis.capsule_depsr   r   Úmypyc.optionsr	   Úmypyc.test.testutilr
   r   r   r   r   r   Úmypyc.transform.lowerr   r6   r   r8   r9   r/   ú<module>rD      sB   ðÙ 1å "ã å $Ý *Ý -ß ^Ý )÷÷ õ +à	Ð€ôY�nõ Yr9   