<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet"
        integrity="sha384-GLhlTQ8iRABdZLl6O3oVMWSktQOp6b7In1Zl3/Jr59b6EGGoI1aFkw7cmDA6j6gD" crossorigin="anonymous">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.3.0/css/all.min.css"
        integrity="sha512-SzlrxWUlpfuzQ+pcUCosxcglQRNAq/DZjVsC0lE40xsADsfeQoEypE+enwcOiGjk/bSuGGKHEyjSoQ1zVisanQ=="
        crossorigin="anonymous" referrerpolicy="no-referrer" />
</head>
</html>

Yf%                 @   sS   d  Z  d d l m Z Gd d   d  Z Gd d   d  Z Gd d   d  Z d	 S)
zqMock classes that imitate idlelib modules or classes.

Attributes and methods will be added as needed for tests.
    )Textc               @   s1   e  Z d  Z d Z d d d  Z d d   Z d S)Funca  Mock function captures args and returns result set by test.

    Attributes:
    self.called - records call even if no args, kwds passed.
    self.result - set by init, returned by call.
    self.args - captures positional arguments.
    self.kwds - captures keyword arguments.

    Most common use will probably be to mock methods.
    Mock_tk.Var and Mbox_func are special variants of this.
    Nc             C   s(   d |  _  | |  _ d  |  _ d  |  _ d  S)NF)calledresultargskwds)selfr    r	   @/opt/alt/python35/lib64/python3.5/idlelib/idle_test/mock_idle.py__init__   s    			zFunc.__init__c             O   sD   d |  _  | |  _ | |  _ t |  j t  r9 |  j  n |  j Sd  S)NT)r   r   r   
isinstancer   BaseException)r   r   r   r	   r	   r
   __call__   s    			zFunc.__call__)__name__
__module____qualname____doc__r   r   r	   r	   r	   r
   r      s   r   c               @   s:   e  Z d  Z d Z d d d d d d  Z d d   Z d S)Editorz7Minimally imitate EditorWindow.EditorWindow class.
    Nc             C   s   t    |  _ t   |  _ d  S)N)r   textUndoDelegatorZundo)r   Zflistfilenamekeyrootr	   r	   r
   r   &   s    zEditor.__init__c             C   s.   |  j  j d  } |  j  j d  } | | f S)Nz1.0end)r   index)r   firstZlastr	   r	   r
   get_selection_indices*   s    zEditor.get_selection_indices)r   r   r   r   r   r   r	   r	   r	   r
   r   #   s   r   c               @   s.   e  Z d  Z d Z d d   Z d d   Z d S)r   z9Minimally imitate UndoDelegator,UndoDelegator class.
    c              G   s   d  S)Nr	   )r   r	   r	   r
   undo_block_start4   s    zUndoDelegator.undo_block_startc              G   s   d  S)Nr	   )r   r	   r	   r
   undo_block_stop6   s    zUndoDelegator.undo_block_stopN)r   r   r   r   r   r   r	   r	   r	   r
   r   0   s   r   N)r   Zidlelib.idle_test.mock_tkr   r   r   r   r	   r	   r	   r
   <module>   s   