File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 2222
2323; ;; Code:
2424
25- (require 'treesit-langs ) ; Install pre-built binary
25+ (require 'treesit-langs ) ; Install pre-built binaries
2626
2727(defmacro cognitive-complexity-test (test-name file major-mode expected-result )
2828 " Create a cognitive-complexity test named TEST-NAME using FILE in MAJOR-MODE.
@@ -31,6 +31,7 @@ Expecting result EXPECTED-RESULT."
3131 `(ert-deftest , test-name ()
3232 (with-current-buffer (find-file-noselect , file )
3333 (, major-mode )
34+ (treesit-langs-major-mode-setup)
3435 (let* ((cognitive-complexity-results (cognitive-complexity-buffer))
3536 (total-score (car cognitive-complexity-results))
3637 (expressions-and-scores (cognitive-complexity-test-utils-expression-scores cognitive-complexity-results)))
You can’t perform that action at this time.
0 commit comments