[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] scratch/merge-cedet-tests 8899bf4 017/316: Add header comm
From: |
Edward John Steere |
Subject: |
[Emacs-diffs] scratch/merge-cedet-tests 8899bf4 017/316: Add header comments and provide. |
Date: |
Fri, 27 Jan 2017 20:03:22 +0000 (UTC) |
branch: scratch/merge-cedet-tests
commit 8899bf4045cf47e293174eb07ad48e38e39c0983
Author: Eric Ludlam <address@hidden>
Commit: Edward John Steere <address@hidden>
Add header comments and provide.
---
test/manual/cedet/cedet/semantic/lex-utest.el | 60 +++++++++++++++++++++++++
1 file changed, 60 insertions(+)
diff --git a/test/manual/cedet/cedet/semantic/lex-utest.el
b/test/manual/cedet/cedet/semantic/lex-utest.el
new file mode 100644
index 0000000..b19c376
--- /dev/null
+++ b/test/manual/cedet/cedet/semantic/lex-utest.el
@@ -0,0 +1,60 @@
+;;; lex-utest.el ---
+;;
+;; Copyright (C) 2011 Eric M. Ludlam
+;;
+;; Author: Eric M. Ludlam <address@hidden>
+;;
+;; This program is free software; you can redistribute it and/or
+;; modify it under the terms of the GNU General Public License as
+;; published by the Free Software Foundation, either version 3 of the
+;; License, or (at your option) any later version.
+
+;; This program is distributed in the hope that it will be useful, but
+;; WITHOUT ANY WARRANTY; without even the implied warranty of
+;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+;; General Public License for more details.
+
+;; You should have received a copy of the GNU General Public License
+;; along with this program. If not, see http://www.gnu.org/licenses/.
+
+
+;;; Commentary:
+;;
+;;
+
+;;; Code:
+
+(defun semantic-lex-test-full-depth (arg)
+ "Test the semantic lexer in the current buffer parsing through lists.
+Usually the lexer parses
+If universal argument ARG, then try the whole buffer."
+ (interactive "P")
+ (let* ((start (current-time))
+ (result (semantic-lex
+ (if arg (point-min) (point))
+ (point-max)
+ 100))
+ (end (current-time)))
+ (message "Elapsed Time: %.2f seconds."
+ (semantic-elapsed-time start end))
+ (pop-to-buffer "*Lexer Output*")
+ (require 'pp)
+ (erase-buffer)
+ (insert (pp-to-string result))
+ (goto-char (point-min))))
+
+(defun semantic-lex-test-region (beg end)
+ "Test the semantic lexer in the current buffer.
+Analyze the area between BEG and END."
+ (interactive "r")
+ (let ((result (semantic-lex beg end)))
+ (pop-to-buffer "*Lexer Output*")
+ (require 'pp)
+ (erase-buffer)
+ (insert (pp-to-string result))
+ (goto-char (point-min))))
+
+
+(provide 'cedet/semantic/lex-utest)
+
+;;; lex-utest.el ends here
- [Emacs-diffs] scratch/merge-cedet-tests 46053c1 010/316: Don't init semantic mode at this point, (continued)
- [Emacs-diffs] scratch/merge-cedet-tests 46053c1 010/316: Don't init semantic mode at this point, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 1a9f3c4 009/316: Disable `ede-project-directories' checking during tests., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 812f259 012/316: Add header comments and provide., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests d07e012 018/316: New test files combining macros and EDE, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests fc6bc00 026/316: (Lisp_LISP): Add cit-srec.el, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 413f179 030/316: (LOADPATH): Added, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 779f839 032/316: (LOADPATH): Add speedbar. (EMACSFLAGS): New variable (Lisp): Use above., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 6813c44 014/316: New test files combining macros and EDE, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 3b92d1c 021/316: Fake lisp.h for project detection purposes., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests a2c77d6 022/316: Move tests in cedet/semantic, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 8899bf4 017/316: Add header comments and provide.,
Edward John Steere <=
- [Emacs-diffs] scratch/merge-cedet-tests 413871b 003/316: (cit-src-dir): New var., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 39b4ea6 019/316: Test Makefile.am for subdir in project-am detector., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 439ca10 007/316: Remove obsolete cvs-auto-updated 'X-RCS' line., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 692209d 011/316: Disable saving EDE's cache file., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests d9b806d 016/316: New template file testing the PROJECT variable setting., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests a4cba68 020/316: New test for project variables., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 066e017 024/316: New Makefile., Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests e4ea343 033/316: Merge from 1.0pre6 branch, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests b13b432 031/316: (LOADPATH): Add contrib. (Misc): New (dist): Add Misc, Edward John Steere, 2017/01/27
- [Emacs-diffs] scratch/merge-cedet-tests 42e1106 034/316: (Lisp_LISP): Add cit-uml.el (Misc_MISC): Add cit-uml.cgr, Edward John Steere, 2017/01/27