emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/go-mode 91b37c4 461/495: Disable output during indentation


From: ELPA Syncer
Subject: [nongnu] elpa/go-mode 91b37c4 461/495: Disable output during indentation tests
Date: Sat, 7 Aug 2021 09:06:09 -0400 (EDT)

branch: elpa/go-mode
commit 91b37c4251ce2e2bf1ed0f93a4afb8e493853b35
Author: Muir Manders <muir@mnd.rs>
Commit: Peter Sanford <psanford@sanford.io>

    Disable output during indentation tests
    
    Don't need to see "Indenting region..." a hundred times.
    
    Closes: #309 [via git-merge-pr]
---
 test/go-indentation-test.el | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/test/go-indentation-test.el b/test/go-indentation-test.el
index c5947f0..8ed95f7 100644
--- a/test/go-indentation-test.el
+++ b/test/go-indentation-test.el
@@ -12,7 +12,7 @@
     (with-temp-buffer
       (go-mode)
       (insert-file-contents file)
-      (let ((contents-before-indent (buffer-string)))
+      (let ((contents-before-indent (buffer-string)) (inhibit-message t))
         (indent-region (point-min) (point-max) nil)
         (should (string= contents-before-indent (buffer-string)))))))
 
@@ -20,7 +20,7 @@
   (with-temp-buffer
     (go-dot-mod-mode)
     (insert-file-contents "testdata/indentation_tests/go.mod")
-    (let ((contents-before-indent (buffer-string)))
+    (let ((contents-before-indent (buffer-string)) (inhibit-message t))
       (indent-region (point-min) (point-max) nil)
       (should (string= contents-before-indent (buffer-string))))))
 
@@ -29,8 +29,9 @@
   (with-temp-buffer
     (go-mode)
     (insert input)
-    (indent-region (point-min) (point-max))
-    (should (string= (buffer-string) expected))))
+    (let ((inhibit-message t))
+      (indent-region (point-min) (point-max))
+      (should (string= (buffer-string) expected)))))
 
 (ert-deftest go--indent-top-level ()
   (go--should-indent



reply via email to

[Prev in Thread] Current Thread [Next in Thread]