Skip to content

Commit 675a10a

Browse files
committed
fix test
1 parent 74cc43e commit 675a10a

File tree

8 files changed

+20
-19
lines changed

8 files changed

+20
-19
lines changed

Eask

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@
1818

1919
(development
2020
(depends-on "kotlin-mode")
21+
(depends-on "go-mode")
2122
(depends-on "lua-mode")
23+
(depends-on "rust-mode")
24+
(depends-on "typescript-mode")
2225
(depends-on "treesit-langs"
2326
:repo "emacs-tree-sitter/treesit-langs"
2427
:fetcher 'github) ; pre-built binary

test/bash-test.el

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
(cognitive-complexity-test bash-simple
2828
"test/bash/Simple.sh"
29-
bash-ts-mode
29+
sh-mode
3030
'(3
3131
(function_definition . 0)
3232
(command . 0)
@@ -44,7 +44,7 @@
4444

4545
(cognitive-complexity-test bash-recursion
4646
"test/bash/Recursion.sh"
47-
bash-ts-mode
47+
sh-mode
4848
'(2
4949
(function_definition . 0)
5050
(if_statement . 1)

test/c-test.el

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
(cognitive-complexity-test c-simple
2828
"test/c/Simple.c"
29-
c-ts-mode
29+
c-mode
3030
'(4
3131
(preproc_ifdef . 1)
3232
(function_definition . 0)
@@ -37,7 +37,7 @@
3737

3838
(cognitive-complexity-test c-recursion
3939
"test/c/Recursion.c"
40-
c-ts-mode
40+
c-mode
4141
'(2
4242
(function_definition . 0)
4343
(if_statement . 1)

test/go-test.el

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
(cognitive-complexity-test simple-go-code
2828
"test/go/Simple.go"
29-
go-ts-mode
29+
go-mode
3030
'(2
3131
("function_declaration" . 0)
3232
("if_statement" . 1)
@@ -35,7 +35,7 @@
3535

3636
(cognitive-complexity-test recursion-go-code
3737
"test/go/Recursion.go"
38-
go-ts-mode
38+
go-mode
3939
'(2
4040
("function_declaration" . 0)
4141
("if_statement" . 1)
@@ -45,7 +45,7 @@
4545
;; https://github.com/emacs-vs/codemetrics/issues/7
4646
(cognitive-complexity-test go-nested-print-calls
4747
"test/go/NestedPrints.go"
48-
go-ts-mode
48+
go-mode
4949
'(6
5050
("function_declaration" . 0)
5151
("for_statement" . 1)

test/javascript-test.el

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
(cognitive-complexity-test javascript-simple
2828
"test/javascript/Simple.js"
29-
js-ts-mode
29+
js-mode
3030
'(3
3131
(function_declaration . 0)
3232
(call_expression . 0)
@@ -36,15 +36,15 @@
3636

3737
(cognitive-complexity-test javascript-recursion
3838
"test/javascript/Recursion.js"
39-
js-ts-mode
39+
js-mode
4040
'(2
4141
(function_declaration . 0)
4242
(if_statement . 1)
4343
(call_expression . 1)))
4444

4545
(cognitive-complexity-test javascript-nesting
4646
"test/javascript/Nesting.js"
47-
js-ts-mode
47+
js-mode
4848
'(4
4949
(call_expression . 0)
5050
(arrow_function . 0)
@@ -58,7 +58,7 @@
5858

5959
(cognitive-complexity-test javascript-logical-operators
6060
"test/javascript/LogicalOperators.js"
61-
js-ts-mode
61+
js-mode
6262
'(2
6363
("&&" . 0)
6464
("||" . 0)

test/lua-test.el

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,4 @@
8787
(binary_expression . 0)
8888
(binary_expression . 0)))
8989

90-
91-
9290
;;; lua-test.el ends here

test/rust-test.el

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
(cognitive-complexity-test rust-simple
2828
"test/rust/Simple.rs"
29-
rust-ts-mode
29+
rust-mode
3030
'(2
3131
(function_item . 0)
3232
(function_item . 0)
@@ -37,15 +37,15 @@
3737

3838
(cognitive-complexity-test rust-recursion
3939
"test/rust/Recursion.rs"
40-
rust-ts-mode
40+
rust-mode
4141
'(2
4242
(function_item . 0)
4343
(if_expression . 1)
4444
(call_expression . 1)))
4545

4646
(cognitive-complexity-test rust-nesting
4747
"test/rust/Nesting.rs"
48-
rust-ts-mode
48+
rust-mode
4949
'(5
5050
(function_item . 0)
5151
(macro_invocation . 0)
@@ -60,7 +60,7 @@
6060

6161
(cognitive-complexity-test rust-logical-operators
6262
"test/rust/LogicalOperators.rs"
63-
rust-ts-mode
63+
rust-mode
6464
'(6
6565
(function_item . 0)
6666
(if_expression . 1)
@@ -76,7 +76,7 @@
7676

7777
(cognitive-complexity-test rust-control-flow
7878
"test/rust/ControlFlow.rs"
79-
rust-ts-mode
79+
rust-mode
8080
'(17
8181
(function_item . 0)
8282
(loop_expression . 1)

test/typescript-test.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
(cognitive-complexity-test typescript-simple
2828
"test/typescript/Simple.ts"
29-
typescript-ts-mode
29+
typescript-mode
3030
'(1
3131
("class_declaration" . 0)
3232
("method_definition" . 0)

0 commit comments

Comments
 (0)