MMCT TEAM
Server IP : 111.118.215.189  /  Your IP : 18.224.51.27
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  ]

Current File : //usr/share/emacs/24.3/lisp/emacs-lisp/tcover-unsafep.elc
;ELC
;;; Compiled by mockbuild@buildfarm06-new.corp.cloudlinux.com on Fri Oct 11 10:09:05 2024
;;; from file /builddir/build/BUILD/emacs-24.3/lisp/emacs-lisp/tcover-unsafep.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 'testcover)
#@54 List of forms that `unsafep' should decide are safe.
(defconst testcover-unsafep-safe '(((lambda (x) (* x 2)) 14) (apply 'cdr (mapcar (lambda (x) (car x)) y)) (cond ((= x 4) 5) (t 27)) (condition-case x (car y) (error (car x))) (dolist (x y) (message "here: %s" x)) (dotimes (x 14 (* x 2)) (message "here: %d" x)) (let (x) (dolist (y '(1 2 3) (1+ y)) (push y x))) (let (x) (apply (lambda (x) (* x 2)) 14)) (let ((x '(2))) (push 1 x) (pop x) (add-to-list 'x 2)) (let ((x 1) (y 2)) (setq x (+ x y))) (let ((x 1)) (let ((y (+ x 3))) (* x y))) (let* nil (current-time)) (let* ((x 1) (y (+ x 3))) (* x y)) (mapcar (lambda (x &optional y &rest z) (setq y (+ x 2)) (* y 3)) '(1 2 3)) (mapconcat #'(lambda (var) (propertize var 'face 'bold)) '("1" "2") ", ") (setq buffer-display-count 14 mark-active t) (propertize "x" 'display '(height (progn (delete-file "x") 1)))) (#$ . 589))
#@70 A-list of (FORM . REASON)... that`unsafep' should decide are unsafe.
(defconst testcover-unsafep-unsafe '(((add-to-list x y) unquoted x) ((add-to-list y x) unquoted y) ((add-to-list 'y x) global-variable y) ((not (delete-file "unsafep.el")) function delete-file) ((cond (t (aset local-abbrev-table 0 0))) function aset) ((cond (t (setq unsafep-vars #1=""))) risky-local-variable unsafep-vars) ((condition-case format-alist 1) risky-local-variable format-alist) ((condition-case x 1 (error (setq format-alist #1#))) risky-local-variable format-alist) ((dolist (x (sort globalvar 'car)) (princ x)) function sort) ((dotimes (x 14) (delete-file "x")) function delete-file) ((let ((post-command-hook "/tmp/")) 1) risky-local-variable post-command-hook) ((let ((x (delete-file "x"))) 2) function delete-file) ((let (x) (add-to-list 'x (delete-file "x"))) function delete-file) ((let (x) (condition-case y (setq x 1 z 2))) global-variable z) ((let (x) (condition-case z 1 (error (delete-file "x")))) function delete-file) ((let (x) (mapc (lambda (x) (setcar x 1)) '((1 . 2) (3 . 4)))) function setcar) ((let (y) (push (delete-file "x") y)) function delete-file) ((let* ((x 1)) (setq y 14)) global-variable y) ((mapc 'car (list '(1 . 2) (cons 3 4) (kill-buffer "unsafep.el"))) function kill-buffer) ((mapcar x y) unquoted x) ((mapcar (lambda (x) (rename-file x "x")) '("unsafep.el")) function rename-file) ((mapconcat x1 x2 " ") unquoted x1) ((pop format-alist) risky-local-variable format-alist) ((push 1 format-alist) risky-local-variable format-alist) ((setq buffer-display-count (delete-file "x")) function delete-file) ((apply '(x) '(1 2 3)) function (x)) ((let (((x))) 1) variable (x)) ((let (1) 2) variable 1)) (#$ . 1468))
#@63 Executes all unsafep tests and displays the coverage results.
(defalias 'testcover-unsafep #[nil "\306\307!\210\310\307!\210\311	\311\211\203'@\312\n!\203 \313\314\n\"\210A\211\204*\f\311\211\203L@\312\n@!\nA\232\204E\313\315\n@\nA#\210A\211\2040*\316\312\317!\204[\320\321!\203_\313\322!\210\323\312\324!\203k\313\325!\210\312\326!\204u\313\327!\210)\330\307!\210\331\307!\210\332\333!\207" [save-functions testcover-unsafep-safe x --dolist-tail-- testcover-unsafep-unsafe safe-functions testcover-unmark-all "unsafep.el" testcover-start nil unsafep error "%S should be safe" "%S should be unsafe: %s" t (delete-file "x") unsafep-function delete-file "safe-functions=t should allow delete-file" (setcar) (setcar x 1) "safe-functions=(setcar) should allow setcar" (setcdr x 1) "safe-functions=(setcar) should not allow setcdr" testcover-mark-all testcover-end message "Done"] 5 (#$ . 3197) nil])

MMCT - 2023