Function: projectile--test-file-from-test-dir-str
projectile--test-file-from-test-dir-str is a byte-compiled function
defined in projectile.el.
Signature
(projectile--test-file-from-test-dir-str FILE-NAME)
Documentation
Get the relative path of the test file FILE-NAME.
Return a path relative to the project root for the test file of FILE-NAME using the src-dir and test-dir properties of the current project type which should be strings, nil returned if this is not the case.
Source Code
;; Defined in ~/.emacs.d/elpa/projectile-20260310.858/projectile.el
(defun projectile--test-file-from-test-dir-str (file-name)
"Get the relative path of the test file FILE-NAME.
Return a path relative to the project root for the test file of FILE-NAME
using the src-dir and test-dir properties of the current project type which
should be strings, nil returned if this is not the case."
(when-let* ((complementary-file (projectile--complementary-file
file-name
#'projectile--impl-to-test-dir
#'projectile--test-name-for-impl-name)))
(file-relative-name complementary-file (projectile-project-root))))