Server IP : 111.118.215.189 / Your IP : 3.143.244.92 Web Server : Apache System : Linux md-in-83.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : a1673wkz ( 2475) PHP Version : 8.2.25 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /usr/share/emacs/24.3/lisp/emacs-lisp/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
;ELC ;;; Compiled by mockbuild@buildfarm06-new.corp.cloudlinux.com on Fri Oct 11 10:09:03 2024 ;;; from file /builddir/build/BUILD/emacs-24.3/lisp/emacs-lisp/ert-x.el ;;; in Emacs version 24.3.1 ;;; with all optimizations. ;;; This file uses dynamic docstrings, first added in Emacs 19.29. ;;; This file does not contain utf-8 non-ASCII characters, ;;; and so can be loaded in Emacs versions earlier than 23. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (require 'ert) #@94 Return a string containing STRING as a text button with PROPERTIES. See `make-text-button'. (defalias 'ert--text-button #[(string &rest properties) "\303\304!rq\210\305\216 c\210\306\307ed\n$\210\310 +\207" [#1=#:temp-buffer string properties generate-new-buffer " *temp*" ((byte-code "\301!\203\n \302!\210\301\207" [#1# buffer-name kill-buffer] 2)) apply make-text-button buffer-string] 5 (#$ . 574)]) #@90 Compute a test buffer name based on BASE-NAME. Helper function for `ert--test-buffers'. (defalias 'ert--format-test-buffer-name #[(base-name) "\303\304\305 \203 \305 \211\306H >\204 \307\310\311\312#\210\313H)\206 \314\n\203+ \303\315\n\"\202, \316#\207" [cl-x cl-struct-ert-test-tags base-name format "*Test buffer (%s)%s*" ert-running-test 0 error "%s accessing a non-%s" ert-test-name ert-test 1 "<anonymous test>" ": %s" ""] 7 (#$ . 989)]) #@233 Table of all test buffers. Keys are the buffer objects, values are t. The main use of this table is for `ert-kill-all-test-buffers'. Not all buffers in this table are necessarily live, but all live test buffers are in this table. (defvar ert--test-buffers (make-hash-table :weakness t) (#$ . 1446)) (define-button-type 'ert--test-buffer-button 'action 'ert--test-buffer-button-action 'help-echo "mouse-2, RET: Pop to test buffer") #@56 Pop to the test buffer that BUTTON is associated with. (defalias 'ert--test-buffer-button-action #[(button) "\301\302\303\"!\207" [button pop-to-buffer button-get ert--test-buffer] 4 (#$ . 1885)]) #@151 Helper function for `ert-with-test-buffer'. Create a test buffer with a name based on ERT--BASE-NAME and run ERT--THUNK with that buffer as current. (defalias 'ert--call-with-test-buffer #[(ert--base-name ert--thunk) "\306\307!!\310\311 !\312\313\314 %\315 \316#\210r q\210\317\nB\fB *\320 !\210\321 \"\210*\207" [ert--base-name ert--buffer ert--button ert--test-buffers ert--infos ert--thunk generate-new-buffer ert--format-test-buffer-name ert--text-button buffer-name :type ert--test-buffer-button ert--test-buffer puthash t "Buffer: " kill-buffer remhash] 6 (#$ . 2090)]) #@346 Create a test buffer and run BODY in that buffer. To be used in ERT tests. If BODY finishes successfully, the test buffer is killed; if there is an error, the test buffer is kept around on error for further inspection. Its name is derived from the name of the test and the result of NAME-FORM. (fn (&key ((:name NAME-FORM) nil)) &body BODY) (defalias 'ert-with-test-buffer '(macro . #[(&rest body) "\203\f \211A@\202 \304\305\306GD\"\307 >A@ \203F @\310>\203/ AA\211\202 \311 >A@\203= \312\211\202 \313\314@\"\210\202 )\315\n\316\312BBE*\207" [body #1=#:--cl-rest-- name-form #2=#:--cl-keys-- signal wrong-number-of-arguments ert-with-test-buffer :name (:name :allow-other-keys) :allow-other-keys nil error "Keyword argument %s not one of (:name)" ert--call-with-test-buffer lambda] 6 (#$ . 2681)])) (byte-code "\300\301\302\303#\210\300\301\304\305#\210\300\301\304\305#\207" [put ert-with-test-buffer edebug-form-spec ((form) body) lisp-indent-function 1] 4) #@44 Kill all test buffers that are still live. (defalias 'ert-kill-all-test-buffers #[nil "\302\303\304 \"\210\305\306\307 !#\210)\310 !\210\311\207" [count ert--test-buffers 0 maphash #[(buffer dummy) "\302!\203\f \303!\205 T\211\207" [buffer count buffer-live-p kill-buffer] 2] message "%s out of %s test buffers killed" hash-table-count clrhash nil] 5 (#$ . 3670) nil]) #@529 Simulate calling COMMAND the way the Emacs command loop would call it. This effectively executes (apply (car COMMAND) (cdr COMMAND)) and returns the same value, but additionally runs hooks like `pre-command-hook' and `post-command-hook', and sets variables like `this-command' and `last-command'. COMMAND should be a list where the car is the command symbol and the rest are arguments to the command. NOTE: Since the command is not called by `call-interactively' test for `called-interactively' in the command will fail. (defalias 'ert-simulate-command #[(command) "<\204\f \306\307\310D\"\210\311@!\204 \306\307\312@D\"\210 \203&