[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/csharp-mode 7c196b7 144/459: Added a minimal imenu name
From: |
ELPA Syncer |
Subject: |
[elpa] externals/csharp-mode 7c196b7 144/459: Added a minimal imenu namespace test. |
Date: |
Sun, 22 Aug 2021 13:59:14 -0400 (EDT) |
branch: externals/csharp-mode
commit 7c196b722e6df8450931af96a0c2c11e50d9e999
Author: Shawn Hoover <shawn@xia.com>
Commit: Shawn Hoover <shawn@xia.com>
Added a minimal imenu namespace test.
---
csharp-mode-tests.el | 9 +++++++++
test-files/imenu-namespace-test.cs | 5 +++++
2 files changed, 14 insertions(+)
diff --git a/csharp-mode-tests.el b/csharp-mode-tests.el
index 8898992..bb066e8 100644
--- a/csharp-mode-tests.el
+++ b/csharp-mode-tests.el
@@ -212,6 +212,15 @@
(should (string-match-p "prop IImenuTest.InterfaceString" imenu-items))
(kill-buffer buffer)))
+(ert-deftest imenu-parsing-supports-namespace ()
+ (let* ((find-file-hook nil) ;; avoid vc-mode file-hooks when opening!
+ (buffer (find-file-read-only
"./test-files/imenu-namespace-test.cs"))
+ (imenu-index (csharp--imenu-create-index-helper nil "" t t)) ;;
same line as in `csharp-imenu-create-index'.
+ (ns-entry (cadr imenu-index))
+ (ns-item (car ns-entry)))
+ (should (string-match-p "namespace ImenuTest" ns-item))
+ (kill-buffer buffer)))
+
(defvar csharp-hook1 nil)
(defvar csharp-hook2 nil)
diff --git a/test-files/imenu-namespace-test.cs
b/test-files/imenu-namespace-test.cs
new file mode 100644
index 0000000..3411281
--- /dev/null
+++ b/test-files/imenu-namespace-test.cs
@@ -0,0 +1,5 @@
+using System;
+
+namespace ImenuTest
+{
+}
- [elpa] externals/csharp-mode 5d0ffaa 113/459: Use cl-lib equivalents for incf and decf, (continued)
- [elpa] externals/csharp-mode 5d0ffaa 113/459: Use cl-lib equivalents for incf and decf, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 6af6f88 111/459: Fix fontification tests., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 7247a27 115/459: Prefix set-difference from cl.el, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 71b0e96 116/459: Fix errors and warnings in unit-tests., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 56a9a87 117/459: Fix backwards compatibility and broken CI-build., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode c446400 118/459: Remove obsolete comment, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 829ad4d 120/459: Another stab at fixing the CI., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode ae1e36c 132/459: Tentative fix for imenu and generics, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 1f292eb 141/459: Fixed fontification hanging on a large file (3kLOC)., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode ee817b0 143/459: Added a test for imenu indexing of explicit interface properties., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 7c196b7 144/459: Added a minimal imenu namespace test.,
ELPA Syncer <=
- [elpa] externals/csharp-mode ffa8c3e 145/459: Fixed a test to use cl-caddr, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode f08f0ee 154/459: Improved test-structure with less redundant information (and thus errors). Prepare for improved tests., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 7b8fe05 160/459: Fix version-history based on actual git-tags., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 838727a 173/459: Ensure we get Emacs 24.4 for CI., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 405af61 076/459: Fix parsing of build-logs., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 1574d3e 085/459: Merge pull request #32 from binki/master, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode f1a2e06 110/459: Add unit-test for fontification of compiler-directives., ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 7856be4 123/459: Merge pull request #50 from syohex/workaround-18845, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode 257602e 121/459: Test-file for https://github.com/josteink/csharp-mode/issues/46, ELPA Syncer, 2021/08/22
- [elpa] externals/csharp-mode ef9d3f9 134/459: Update changelog., ELPA Syncer, 2021/08/22