[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/csharp-mode ee817b0 143/459: Added a test for imenu ind
From: |
ELPA Syncer |
Subject: |
[elpa] externals/csharp-mode ee817b0 143/459: Added a test for imenu indexing of explicit interface properties. |
Date: |
Sun, 22 Aug 2021 13:59:14 -0400 (EDT) |
branch: externals/csharp-mode
commit ee817b07dc093d0b3cb8adc06d39c3646789fa99
Author: Shawn Hoover <shawn@xia.com>
Commit: Shawn Hoover <shawn@xia.com>
Added a test for imenu indexing of explicit interface properties.
---
csharp-mode-tests.el | 10 ++++++++++
test-files/imenu-interface-property-test.cs | 11 +++++++++++
2 files changed, 21 insertions(+)
diff --git a/csharp-mode-tests.el b/csharp-mode-tests.el
index c3e236c..8898992 100644
--- a/csharp-mode-tests.el
+++ b/csharp-mode-tests.el
@@ -202,6 +202,16 @@
(should (string-match-p "HasCommentToo" imenu-items))
(kill-buffer buffer)))
+(ert-deftest imenu-parsing-supports-explicit-interface-properties ()
+ (let* ((find-file-hook nil) ;; avoid vc-mode file-hooks when opening!
+ (buffer (find-file-read-only
"./test-files/imenu-interface-property-test.cs"))
+ (imenu-index (csharp--imenu-create-index-helper nil "" t t)) ;;
same line as in `csharp-imenu-create-index'.
+ (class-entry (caddr imenu-index))
+ (class-entries (cdr class-entry))
+ (imenu-items (mapconcat 'car class-entries " ")))
+ (should (string-match-p "prop IImenuTest.InterfaceString" imenu-items))
+ (kill-buffer buffer)))
+
(defvar csharp-hook1 nil)
(defvar csharp-hook2 nil)
diff --git a/test-files/imenu-interface-property-test.cs
b/test-files/imenu-interface-property-test.cs
new file mode 100644
index 0000000..4818d56
--- /dev/null
+++ b/test-files/imenu-interface-property-test.cs
@@ -0,0 +1,11 @@
+using System;
+
+public interface IImenuTest
+{
+ string InterfaceString { get; }
+}
+
+public class ImenuTest : IImenuTest
+{
+ string IImenuTest.InterfaceString { get { return "i"; }}
+}
- [elpa] externals/csharp-mode bf613f8 274/459: Handle failure correctly, (continued)
- [elpa] externals/csharp-mode bf613f8 274/459: Handle failure correctly, ELPA Syncer, 2021/08/22
- [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 <=
- [elpa] externals/csharp-mode 7c196b7 144/459: Added a minimal imenu namespace test., ELPA Syncer, 2021/08/22
- [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