summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2025-01-08 19:07:55 +0100
committerUlrich Müller <ulm@gentoo.org>2025-01-08 19:07:55 +0100
commit4e0d6cde051b1199cb30bb3a5e15a9d6c6a375b4 (patch)
tree8f84b3cb5502f2f805d3b10dc372330726ba8f29 /test/devbook-mode-tests.el
parentNew test for ebuild-mode-find-s (diff)
downloadebuild-mode-4e0d6cde051b1199cb30bb3a5e15a9d6c6a375b4.tar.gz
ebuild-mode-4e0d6cde051b1199cb30bb3a5e15a9d6c6a375b4.tar.bz2
ebuild-mode-4e0d6cde051b1199cb30bb3a5e15a9d6c6a375b4.zip
Replace anonymous no-op functions in tests
* test/ebuild-mode-tests.el (ebuild-mode-test-get-builddir): * test/devbook-mode-tests.el (devbook-mode-test-set-schema): Replace anonymous no-op functions with stringp. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
Diffstat (limited to 'test/devbook-mode-tests.el')
-rw-r--r--test/devbook-mode-tests.el3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/devbook-mode-tests.el b/test/devbook-mode-tests.el
index befbab6..3160807 100644
--- a/test/devbook-mode-tests.el
+++ b/test/devbook-mode-tests.el
@@ -31,8 +31,7 @@
(rncschema "start = element foo { empty }\n")
((symbol-function 'file-exists-p)
(lambda (file) (string-equal file rncfile)))
- ((symbol-function 'file-directory-p)
- (lambda (_file) t))
+ ((symbol-function 'file-directory-p) #'stringp)
((symbol-function 'insert-file-contents)
(lambda (file &rest _args)
(unless (string-equal file rncfile)