+
     [;i  c                   s~    ^RI 5 ^ RIHtHt ^ RIHtHt ^ RIHt ^ RI	H
t
HtHtHt  ! R R]P                  4      tR# )	i   )Z*)ApplicationsApplication)	ProcessesAffectedProcess)Package)ApplicationsCollectionProcessesCollectionPackagesCollectionAffectedProcessesCollectionc                   sz   a  ] tR t^t o R tR tR t]P                  RR4      R 4       t	R t
R tR	 tR
 tRtV tR# )TestCollectionsc                s   \         P                  p\        R RRRRV/4      p\        R RRRRV/4      p\        R RRRRV/4      p\        W#V.4      pV P	                  VP                  R 4      \        W2V.4      4       V P	                  VP                  R4      \        W$V.4      4       V P                  V\        4       R	# )
namefoohelperbartypebazquxZquuxZcorgeN)r    DEFAULT_TYPEr   r   assertEqualsortedassertIsInstance)selfdefault_typea1a2a3
collection   &     B/usr/lib/python3.14/site-packages/tracer/tests/test_collections.pytest_applications_sortedZ(TestCollections.test_applications_sorted
   s    **,FE8UFLIJ"FE8UFLIJ"FFHgv|LM"%rrl3*:$$V,.Dbb\.RS:$$X.0FPR|0TU
$:;    c                s    \         P                  ! 4       pV P                  V\        4       V P                  VP	                  R 4      \        4       V P                  VP                  R4      \        4       R# )ZusergffAN)r   allr   r   owned_byZ
newer_thanr   r      & r   test_processes_typesZ$TestCollections.test_processes_types   sV    }}*
$78
++F35HI
--l;=PQr   c                s    \         P                  ! 4       P                  R 4      pV P                  \	        V4      ^ 4       R # )N)r   r   r    ZassertGreaterlenr!   r"   r   test_processes_none_userZ(TestCollections.test_processes_none_user   s,    }}''-*S_a(r   Tz%@TODO Create Mock for Processes classc                s6   \        R 4      p\        R 4      p\        . RO4      Vn        \        4       pVP	                  V.4       VP	                  V.4       V P                  W4       V P                  RW3P                  V4      ,          P                  4       R# )i  r   N)r   r   r   )r   ZsetZfilesr   ZupdateZassertInZindex)r   p1p2Zc   &   r   test_processes_updateZ%TestCollections.test_processes_update   so    t"t"&'"(!#!((B4.((B4.----q~++,r   c                s   \        R 4      p\        R4      p\        R4      p\        R^{4      p\        R4      p\        WW4.4      pV P                  VP                  W.4      P	                  R4      \        W.4      P	                  R4      4       V P                  VP                  R4      V4       V P                  VP                  V.4      ^ ,          P                  4       R# )r   r   r   r   r
   N)r   r   r   Zintersectionr   ZassertIsNotNoneZmodified)r   r&   r'   Zp3Zp4Zp5c1   &      r   test_packages_intersectionZ*TestCollections.test_packages_intersection,   s    u~"u~"u~"uc"u~"22*+"2??B8,33F;=OQSPX=Y=`=`ag=hi2??4("-rt,Q/889r   c                s8   \        R R/4      p\        R R/4      p\        R R/4      p\        WV.4      pV Uu0 uF  qUP                  kK  	  up0 Rm8X  g   Q hVP                  R RR4       V Uu0 uF  qUP                  kK  	  up0 Rm8X  g   Q hR# u upi u upi )r
   r   r   r   r   N>   r   r   r   >   r   r   r   )r   r   r
   Zreplace_values)r   r   r   r   r*   Zar   r   test_replace_valuesZ#TestCollections.test_replace_values7   s    FE?#"FE?#"FE?#"rrl+"	"Q&&"	!6	66	6FE5)	"Q&&"	!6	66	6 
	s   B0Bc                s   \         P                  ! 4       pVP                  R 4      p\        \	        V4      ^,
          4       FD  pW#,          P                  4       W#^,           ,          P                  4       8  g   K;  \        R4      h	  R# )create_timez$The collection isn't sorted properlyN)r   r   r   Zranger$   r.   Z	Exception)r   r*   Zc2Zir(   r   test_collection_sorted_callableZ/TestCollections.test_collection_sorted_callableA   s`    }}"	yy"R1aeBsG//11
:
;; r   c                s   \         P                  p\        RRRRRV/4      p\        RRRRRV/4      p\        W#.4      pVP	                  R4      pT P                  V Uu. uF  qfP                  NK  	  upRR.4       R# u upi )z[
https://github.com/FrostyX/tracer/issues/151
https://github.com/FrostyX/tracer/issues/156
r
   r   r   Nr   r   r   )r    r   r   r   r   r   r   )r   r   r   r   r   Zcollection_sortedZappr+   r   #test_application_sorted_none_helperZ3TestCollections.test_application_sorted_none_helperI   s    
 **,FE8T6<HI"FE8UFLIJ"%rh/* ''1*;<*;3JJ*;<t}<s   A? N)Z__name__Z
__module__Z__qualname__Z__firstlineno__r   r#   r%   unittestZskipIfr)   r,   r-   r/   r0   Z__static_attributes__Z__classdictcell__)Z__classdict__s   @r   r	   r	      sO     	<R) //$?@
- A
-	:7< r   r	   N)Z__meta__Ztracer.resources.applicationsr    r   Ztracer.resources.processesr   r   Ztracer.resources.packager   Ztracer.resources.collectionsr   r   r   r   r2   ZTestCaser	   r1   r   r   <module>r3      s1     C A , F  FLh'' Lr   