Skip to content

Commit 54707c0

Browse files
zthcknitt
authored andcommitted
commit new test output (that has errors)
1 parent a1144a6 commit 54707c0

22 files changed

+78
-6242
lines changed

tests/analysis_tests/tests-reanalyze/deadcode/expected/deadcode.txt

Lines changed: 0 additions & 4250 deletions
Large diffs are not rendered by default.
Lines changed: 0 additions & 95 deletions
Original file line numberDiff line numberDiff line change
@@ -1,95 +0,0 @@
1-
2-
3-
Exception Analysis
4-
Exn.res:1:5-10
5-
raises might raise Not_found (Exn.res:1:19) and is not annotated with @raises(Not_found)
6-
7-
Exception Analysis
8-
Exn.res:19:5-28
9-
callsRaiseWithAnnotation might raise Not_found (Exn.res:19:31) and is not annotated with @raises(Not_found)
10-
11-
Exception Analysis
12-
Exn.res:22:5-42
13-
callsRaiseWithAnnotationAndIsAnnotated might raise Not_found (Exn.res:22:45) and is not annotated with @raises(Not_found)
14-
15-
Exception Analysis
16-
Exn.res:22:5-42
17-
callsRaiseWithAnnotationAndIsAnnotated might raise Not_found (Exn.res:22:45) and is annotated with redundant @raises(A)
18-
19-
Exception Analysis
20-
Exn.res:24:5-19
21-
incompleteMatch might raise Match_failure (Exn.res:25:2) and is not annotated with @raises(Match_failure)
22-
23-
Exception Analysis
24-
Exn.res:32:5-13
25-
twoRaises might raise [A (Exn.res:34:4), B (Exn.res:37:4)] and is not annotated with @raises([A, B])
26-
27-
Exception Analysis
28-
Exn.res:41:5-14
29-
sequencing might raise A (Exn.res:42:2) and is not annotated with @raises(A)
30-
31-
Exception Analysis
32-
Exn.res:48:5-14
33-
wrongCatch might raise B (Exn.res:49:6) and is not annotated with @raises(B)
34-
35-
Exception Analysis
36-
Exn.res:54:5-15
37-
wrongCatch2 might raise [C (Exn.res:55:24), Match_failure (Exn.res:55:2)] and is not annotated with @raises([C, Match_failure])
38-
39-
Exception Analysis
40-
Exn.res:62:5-19
41-
raise2Annotate3 might raise [A (Exn.res:64:4), B (Exn.res:67:4)] and is annotated with redundant @raises(C)
42-
43-
Exception Analysis
44-
Exn.res:73:5-24
45-
parse_json_from_file might raise Error (Exn.res:76:4) and is not annotated with @raises(Error)
46-
47-
Exception Analysis
48-
Exn.res:82:5-11
49-
reRaise might raise B (Exn.res:84:19) and is not annotated with @raises(B)
50-
51-
Exception Analysis
52-
Exn.res:93:5-22
53-
raiseInInternalLet might raise A (Exn.res:94:14) and is not annotated with @raises(A)
54-
55-
Exception Analysis
56-
Exn.res:98:5-16
57-
indirectCall might raise Not_found (Exn.res:98:31) and is not annotated with @raises(Not_found)
58-
59-
Exception Analysis
60-
Exn.res:124:5-16
61-
severalCases might raise Failure (Exn.res:126:13 Exn.res:127:13 Exn.res:128:15) and is not annotated with @raises(Failure)
62-
63-
Exception Analysis
64-
Exn.res:136:5-23
65-
redundantAnnotation raises nothing and is annotated with redundant @raises(Invalid_argument)
66-
67-
Exception Analysis
68-
Exn.res:138:5-6
69-
_x might raise A (Exn.res:138:9) and is not annotated with @raises(A)
70-
71-
Exception Analysis
72-
Exn.res:140:5
73-
_ might raise A (Exn.res:140:8) and is not annotated with @raises(A)
74-
75-
Exception Analysis
76-
Exn.res:142:5-6
77-
() might raise A (Exn.res:142:9) and is not annotated with @raises(A)
78-
79-
Exception Analysis
80-
Exn.res:144:1-16
81-
Toplevel expression might raise Not_found (Exn.res:144:0) and is not annotated with @raises(Not_found)
82-
83-
Exception Analysis
84-
Exn.res:154:45-46
85-
expression does not raise and is annotated with redundant @doesNotRaise
86-
87-
Exception Analysis
88-
Exn.res:154:5-21
89-
onResultPipeWrong might raise Assert_failure (Exn.res:154:48) and is not annotated with @raises(Assert_failure)
90-
91-
Exception Analysis
92-
ExnA.res:1:5-7
93-
bar might raise Not_found (ExnA.res:1:16) and is not annotated with @raises(Not_found)
94-
95-
Analysis reported 23 issues (Exception Analysis:23)

tests/analysis_tests/tests-reanalyze/deadcode/package-lock.json

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/analysis_tests/tests/package-lock.json

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
Hover src/Auto.res 2:13
2-
{"contents": {"kind": "markdown", "value": "```rescript\n('a => 'b, List.t<'a>) => List.t<'b>\n```\n\n---\n\n```\n \n```\n```rescript\ntype List.t<'a> = list<'a>\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22List.res%22%2C34%2C0%5D)\n"}}
2+
{"contents": {"kind": "markdown", "value": "```rescript\n('a => 'b, Stdlib.List.t<'a>) => Stdlib.List.t<'b>\n```\n\n---\n\n```\n \n```\n```rescript\ntype Stdlib.List.t<'a> = list<'a>\n```\nGo to: [Type definition](command:rescript-vscode.go_to_location?%5B%22Stdlib_List.resi%22%2C34%2C0%5D)\n"}}
33

tests/analysis_tests/tests/src/expected/Completion.res.txt

Lines changed: 12 additions & 770 deletions
Large diffs are not rendered by default.

tests/analysis_tests/tests/src/expected/CompletionDicts.res.txt

Lines changed: 3 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,7 @@ Package opens Pervasives.JsxModules.place holder
66
ContextPath CArgument Value[Dict, fromArray]($0)
77
ContextPath Value[Dict, fromArray]
88
Path Dict.fromArray
9-
[{
10-
"label": "(_, _)",
11-
"kind": 12,
12-
"tags": [],
13-
"detail": "(string, 'a)",
14-
"documentation": null,
15-
"insertText": "(${1:_}, ${2:_})",
16-
"insertTextFormat": 2
17-
}]
9+
[]
1810

1911
Complete src/CompletionDicts.res 3:31
2012
posCursor:[3:31] posNoWhite:[3:30] Found expr:[3:14->3:34]
@@ -24,15 +16,7 @@ Package opens Pervasives.JsxModules.place holder
2416
ContextPath CArgument Value[Dict, fromArray]($0)
2517
ContextPath Value[Dict, fromArray]
2618
Path Dict.fromArray
27-
[{
28-
"label": "(_, _)",
29-
"kind": 12,
30-
"tags": [],
31-
"detail": "(string, 'a)",
32-
"documentation": null,
33-
"insertText": "(${1:_}, ${2:_})",
34-
"insertTextFormat": 2
35-
}]
19+
[]
3620

3721
Complete src/CompletionDicts.res 6:37
3822
posCursor:[6:37] posNoWhite:[6:36] Found expr:[6:14->6:41]
@@ -53,18 +37,6 @@ Package opens Pervasives.JsxModules.place holder
5337
ContextPath CArgument Value[Dict, fromArray]($0)
5438
ContextPath Value[Dict, fromArray]
5539
Path Dict.fromArray
56-
[{
57-
"label": "true",
58-
"kind": 4,
59-
"tags": [],
60-
"detail": "bool",
61-
"documentation": null
62-
}, {
63-
"label": "false",
64-
"kind": 4,
65-
"tags": [],
66-
"detail": "bool",
67-
"documentation": null
68-
}]
40+
[]
6941

7042

tests/analysis_tests/tests/src/expected/CompletionExpressions.res.txt

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1259,28 +1259,20 @@ ContextPath CArgument Value[mkStuff]($0)
12591259
ContextPath Value[mkStuff]
12601260
Path mkStuff
12611261
[{
1262-
"label": "/<regexp>/g",
1263-
"kind": 4,
1264-
"tags": [],
1265-
"detail": "Regular expression",
1266-
"documentation": null,
1267-
"insertText": "/$0/g",
1268-
"insertTextFormat": 2
1269-
}, {
1270-
"label": "Js.Re.fromString()",
1262+
"label": "Stdlib.RegExp.fromString()",
12711263
"kind": 12,
12721264
"tags": [],
12731265
"detail": "string => t",
12741266
"documentation": null,
1275-
"insertText": "Js.Re.fromString($0)",
1267+
"insertText": "Stdlib.RegExp.fromString($0)",
12761268
"insertTextFormat": 2
12771269
}, {
1278-
"label": "Js.Re.fromStringWithFlags()",
1270+
"label": "Stdlib.RegExp.fromStringWithFlags()",
12791271
"kind": 12,
12801272
"tags": [],
12811273
"detail": "(string, ~flags: string) => t",
12821274
"documentation": null,
1283-
"insertText": "Js.Re.fromStringWithFlags($0)",
1275+
"insertText": "Stdlib.RegExp.fromStringWithFlags($0)",
12841276
"insertTextFormat": 2
12851277
}]
12861278

tests/analysis_tests/tests/src/expected/CompletionFunctionArguments.res.txt

Lines changed: 0 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -174,16 +174,6 @@ Path someFnTakingVariant
174174
"modulePath": "Obj",
175175
"filePath": "src/CompletionFunctionArguments.res"
176176
}
177-
}, {
178-
"label": "Object",
179-
"kind": 9,
180-
"tags": [],
181-
"detail": "module Object",
182-
"documentation": null,
183-
"data": {
184-
"modulePath": "Object",
185-
"filePath": "src/CompletionFunctionArguments.res"
186-
}
187177
}, {
188178
"label": "Objects",
189179
"kind": 9,
@@ -194,26 +184,6 @@ Path someFnTakingVariant
194184
"modulePath": "Objects",
195185
"filePath": "src/CompletionFunctionArguments.res"
196186
}
197-
}, {
198-
"label": "Option",
199-
"kind": 9,
200-
"tags": [],
201-
"detail": "module Option",
202-
"documentation": null,
203-
"data": {
204-
"modulePath": "Option",
205-
"filePath": "src/CompletionFunctionArguments.res"
206-
}
207-
}, {
208-
"label": "Ordering",
209-
"kind": 9,
210-
"tags": [],
211-
"detail": "module Ordering",
212-
"documentation": null,
213-
"data": {
214-
"modulePath": "Ordering",
215-
"filePath": "src/CompletionFunctionArguments.res"
216-
}
217187
}]
218188

219189
Complete src/CompletionFunctionArguments.res 57:33
@@ -267,16 +237,6 @@ Path someFnTakingVariant
267237
"modulePath": "Obj",
268238
"filePath": "src/CompletionFunctionArguments.res"
269239
}
270-
}, {
271-
"label": "Object",
272-
"kind": 9,
273-
"tags": [],
274-
"detail": "module Object",
275-
"documentation": null,
276-
"data": {
277-
"modulePath": "Object",
278-
"filePath": "src/CompletionFunctionArguments.res"
279-
}
280240
}, {
281241
"label": "Objects",
282242
"kind": 9,
@@ -287,26 +247,6 @@ Path someFnTakingVariant
287247
"modulePath": "Objects",
288248
"filePath": "src/CompletionFunctionArguments.res"
289249
}
290-
}, {
291-
"label": "Option",
292-
"kind": 9,
293-
"tags": [],
294-
"detail": "module Option",
295-
"documentation": null,
296-
"data": {
297-
"modulePath": "Option",
298-
"filePath": "src/CompletionFunctionArguments.res"
299-
}
300-
}, {
301-
"label": "Ordering",
302-
"kind": 9,
303-
"tags": [],
304-
"detail": "module Ordering",
305-
"documentation": null,
306-
"data": {
307-
"modulePath": "Ordering",
308-
"filePath": "src/CompletionFunctionArguments.res"
309-
}
310250
}]
311251

312252
Complete src/CompletionFunctionArguments.res 63:23

0 commit comments

Comments
 (0)