Commit Graph

1019 Commits

Author SHA1 Message Date
Jeroen Engels
ec21dee1da Remove unused temp function 2021-03-10 17:02:21 +01:00
Jeroen Engels
5e112638f7 Change test breakage 2021-03-10 17:02:21 +01:00
Jeroen Engels
279ac055bb Remove handling of global error module name 2021-03-10 17:02:21 +01:00
Jeroen Engels
e7972faa3f Show correct failure message 2021-03-10 17:02:21 +01:00
Jeroen Engels
111ec4589b Additional branching 2021-03-10 17:02:21 +01:00
Jeroen Engels
f64684c02a tmp 2021-03-10 17:02:21 +01:00
Jeroen Engels
124748a3cf Fail when there are too many errors 2021-03-10 17:02:21 +01:00
Jeroen Engels
614f9d8a49 Outline happy path 2021-03-10 17:02:21 +01:00
Jeroen Engels
bbc4697d9f Duplicate 2021-03-10 17:02:21 +01:00
Jeroen Engels
0dd50b51d9 break test 2021-03-10 17:02:21 +01:00
Jeroen Engels
a963f80e62 Remove unused code and outdated documentation 2021-03-10 17:02:21 +01:00
Jeroen Engels
46c77253c3 Re-use expectGlobalAndModuleErrors & expectGlobalAndModuleErrors 2021-03-10 17:02:21 +01:00
Jeroen Engels
21ee813aa7 Add expectGlobalAndModuleErrors 2021-03-10 17:02:21 +01:00
Jeroen Engels
686e80735d Add expectGlobalAndLocalErrors 2021-03-10 17:02:21 +01:00
Jeroen Engels
2eb0d5d9e8 Mention did not expect errors when none are expected 2021-03-10 17:02:21 +01:00
Jeroen Engels
85cdc6a69f Better error message when there are no expected global errors 2021-03-10 17:02:21 +01:00
Jeroen Engels
0c5feb427c Start working on expectGlobalErrors 2021-03-10 17:02:21 +01:00
Jeroen Engels
cb84596b08 Handle global errors differently 2021-03-10 17:02:21 +01:00
Jeroen Engels
29bea7388e Expect all 2021-03-10 17:02:21 +01:00
Jeroen Engels
5daf0f44d4 Extract expect no errors 2021-03-10 17:02:21 +01:00
Jeroen Engels
2aafccea23 Split expectErrorsForModules into 2 functions 2021-03-10 17:02:21 +01:00
Jeroen Engels
9717bf7774 Specify globalErrors 2021-03-10 17:02:21 +01:00
Jeroen Engels
8f7df17811 Extract variable 2021-03-10 17:02:21 +01:00
Jeroen Engels
83574766fb Add list of global errors 2021-03-10 17:02:21 +01:00
Jeroen Engels
984cd7fa25 Document expectGlobalErrors 2021-03-10 17:02:21 +01:00
Jeroen Engels
99f9e24f1d Remove solved TODO 2021-03-10 17:02:21 +01:00
Jeroen Engels
f46f3216bb Make a specific error for too many global errors 2021-03-10 17:02:21 +01:00
Jeroen Engels
791a84410f Remove solved TODO 2021-03-10 17:02:21 +01:00
Jeroen Engels
d0fbeb5cf5 Fix userglobal 2021-03-10 17:02:21 +01:00
Jeroen Engels
cfbe9df416 Fail when there is a global error 2021-03-10 17:02:21 +01:00
Jeroen Engels
cc17889499 Make a specific error for unexpected global errors 2021-03-10 17:02:21 +01:00
Jeroen Engels
4cb8d74815 Change the error message for global errors 2021-03-10 17:02:21 +01:00
Jeroen Engels
f12bab365e Make globalError target a UserGlobal 2021-03-10 17:02:21 +01:00
Jeroen Engels
1789110c4a Use globalerror 2021-03-10 17:02:21 +01:00
Jeroen Engels
58844c9546 Add TODOs 2021-03-10 17:02:21 +01:00
Jeroen Engels
4cfd1228d1 Don't include GLOBAL ERROR errors for expectErrors 2021-03-10 17:02:21 +01:00
Jeroen Engels
702213320c Rewrite with a nest case expression 2021-03-10 17:02:21 +01:00
Jeroen Engels
9ff74101e1 Fail test if a global error is missing 2021-03-10 17:02:21 +01:00
Jeroen Engels
47f21ecab8 Add TODO 2021-03-10 17:02:21 +01:00
Jeroen Engels
51d8cb6095 Remove outdated TODO 2021-03-10 17:02:21 +01:00
Jeroen Engels
5b951a9207 Do not report position errors for global errors 2021-03-10 17:02:21 +01:00
Jeroen Engels
3d2b7234f9 Fix test 2021-03-10 17:02:21 +01:00
Jeroen Engels
cc2bc13626 Include global errors in tests 2021-03-10 17:02:21 +01:00
Jeroen Engels
0c28c148eb Add Review.Test.globalError 2021-03-10 17:02:21 +01:00
Jeroen Engels
c7c2335ac2 Use Range.emptyRange 2021-03-10 17:02:21 +01:00
Jeroen Engels
9d0adae3b1 Rename variable 2021-03-10 17:02:21 +01:00
Jeroen Engels
22f68ab542 Add Review.Test.expectGlobalErrors function 2021-03-10 17:02:21 +01:00
Jeroen Engels
68ddcec986 Make exposed globalError's target UserGlobal 2021-03-10 17:02:21 +01:00
Jeroen Engels
545a482f22 Copy global error 2021-03-10 17:02:21 +01:00
Jeroen Engels
7f8b218399 Check for target instead of file path 2021-03-10 17:02:21 +01:00