Commit Graph

46137 Commits

Author SHA1 Message Date
Simon Ogorodnik ce71e0822c Fix nsToMs 2018-05-23 16:14:38 +03:00
Simon Ogorodnik 391c516ed0 Java inspections test 2018-05-23 16:14:37 +03:00
Simon Ogorodnik 16adf383a5 Use single test project for all tests, instead of copying current 2018-05-23 16:14:36 +03:00
Simon Ogorodnik fea2559a28 Add grouping suite and improve whole kotlin tests 2018-05-23 16:14:34 +03:00
Mikhail Glukhikh 3e2563ad73 Extract AllKotlinTest from AllKotlinInspectionTest
(cherry picked from commit 7cb31ee)
2018-05-23 16:14:33 +03:00
Simon Ogorodnik a57a40b5a9 Fix totals 2018-05-23 16:14:33 +03:00
Simon Ogorodnik 9287d2cd24 Fix testFailed reporting 2018-05-23 16:14:31 +03:00
Simon Ogorodnik 750cb38f8c Don't include stacktrace to failure 2018-05-23 16:13:22 +03:00
Simon Ogorodnik 1a015402c8 Fail per file check on first exception 2018-05-23 16:13:21 +03:00
Simon Ogorodnik c8fbf2d3ac Post-review fixes, add errors reporting to test 2018-05-23 16:13:20 +03:00
Simon Ogorodnik 3221900f69 Change soft refs policy 2018-05-23 16:13:19 +03:00
Simon Ogorodnik 94c8a18f10 Remove dependency from test to performanceTest 2018-05-23 16:13:18 +03:00
Simon Ogorodnik d2a60164c6 Handle exceptions 2018-05-23 16:13:17 +03:00
Simon Ogorodnik 7b155fc9d4 Increase heap size for test 2018-05-23 16:12:57 +03:00
Simon Ogorodnik 7d9310acf4 Refactor inspection test output 2018-05-23 16:12:55 +03:00
Simon Ogorodnik 740e6fde35 Create performance test for all inspections 2018-05-23 16:12:54 +03:00
Roman Artemev de9aea6e98 [JS BE] Fix delegation of suspend method member (KT-23094) 2018-05-23 14:59:59 +03:00
Roman Artemev 8862b26bbd Add test case to check delegation of suspend method 2018-05-23 14:59:59 +03:00
Mikhael Bogdanov f826a253e3 Generate @JvmDefault for property accessors in LIGHT_CLASS MODE 2018-05-23 13:55:38 +02:00
Alexander Udalov 402ceefe60 Regenerate tests 2018-05-23 12:26:10 +02:00
Ilya Gorbunov 3d2a641057 Minor: explicit public visibility 2018-05-23 05:44:34 +03:00
Ilya Gorbunov d9656a939b Do not produce libraries json declarations dump
It's no longer needed for checking binary compatibility.
Clean build of these libraries is no longer required too.

Cleanup build.gradle of binary-compatibility-validator.
2018-05-23 05:00:57 +03:00
Ilya Gorbunov ad8c64e127 bcv: refactor: do not convert flags to string representation 2018-05-23 05:00:57 +03:00
Ilya Gorbunov 66a9a90455 bcv: cleanup the old way of reading kotlin visibilities 2018-05-23 05:00:57 +03:00
Ilya Gorbunov 84d96d9537 Use asm:6.0 in kotlinp
Some class files can't be read with asm:4.0.

Make shadowJar when assembling the project.
2018-05-23 05:00:57 +03:00
Ilya Gorbunov fcf323851e bcv: use kotlinx-metadata-jvm to read kotlin visibilities
It's no longer required to dump kotlin-to-java declaration mapping to json
before using binary-compatibility-validator.

@JvmOverloads are not supported yet, so remove them from test.

Use asm:6.0 in bcv
2018-05-23 05:00:56 +03:00
Ilya Gorbunov 1872550f25 binary-compatibility-validator: add test case for parameters with default values
Move JvmOverloads test there.
2018-05-23 05:00:56 +03:00
Nikolay Krasko fdc6372776 Remove runtime usage from unused receiver parameter tests 2018-05-23 01:41:02 +03:00
Toshiaki Kameyama e7a9614fb5 "Unused receiver parameter" inspection: Fix false negative in same class (KT-23897)
#KT-23897 Fixed
2018-05-23 01:41:01 +03:00
Ilya Gorbunov 793d34b913 Suppress errors about non-public primary constructor and forbidden varargs 2018-05-22 22:27:00 +03:00
Ilya Gorbunov 0eee258fce Generate toString implementation for unsigned types 2018-05-22 22:26:56 +03:00
Ilya Gorbunov e988ea5a1c Implement unsigned arithmetic operations including ulong division and remainder 2018-05-22 22:26:52 +03:00
Ilya Gorbunov e01895fb0a Implement unsigned/signed conversions 2018-05-22 22:26:47 +03:00
Ilya Gorbunov 89e4fdfa9c Implement unsigned comparisons 2018-05-22 22:26:43 +03:00
Ilya Gorbunov e4216099b3 Simplify differenceModulo for unsigned operands 2018-05-22 22:26:39 +03:00
Ilya Gorbunov f2c01a9d9b Generate ranges, progressions and progressioniterators for UInt and ULong 2018-05-22 22:26:36 +03:00
Ilya Gorbunov 5c6719b1e6 Generate arrays of unsigned types 2018-05-22 22:26:32 +03:00
Ilya Gorbunov 4fbc48f83f Generate specialized abstract iterators for unsigned types 2018-05-22 22:26:28 +03:00
Ilya Gorbunov 188d8ab8dd Generate unsigned integers declarations, mostly without implementations
Generate and/or/xor/inv for UByte/UShort using experimental signed counterparts
2018-05-22 22:26:24 +03:00
Ilya Gorbunov e57e3971b6 Setup separate sourceset for unsigned integer types
Build jar with unsigned types and put it to dist
2018-05-22 22:26:20 +03:00
Ilya Gorbunov e886460130 Advance bootstrap
Need to use -XXLanguage feature switch
2018-05-22 22:26:14 +03:00
Toshiaki Kameyama 1d0a11cecd "Remove parameter" quick fix makes generic function call incompilable when type could be inferred from removed parameter only
#KT-23511 Fixed
2018-05-22 17:33:26 +03:00
Toshiaki Kameyama 8271e85dbb ReplaceArrayOfWithLiteralInspection: Remove unnecessary parentheses
#KT-21878 Fixed
2018-05-22 17:33:25 +03:00
Mikhail Glukhikh c95ed9fd20 Result unused: a few enhancements for PSI checks
Related to KT-15063, KT-24433
2018-05-22 17:13:48 +03:00
Mikhail Glukhikh b8375d4864 Extend "async result unused" to "Deferred result unused" #KT-15063 Fixed 2018-05-22 17:07:05 +03:00
Mikhail Glukhikh ffcfa51fbf Introduce inspection "async result unused" #KT-24433 Fixed 2018-05-22 16:39:14 +03:00
Mikhail Glukhikh d0c045e4ba Style fix: AbstractInspectionTest 2018-05-22 16:39:14 +03:00
Mikhail Glukhikh feaaf5df84 Reformat: AbstractKotlinInspection 2018-05-22 16:39:14 +03:00
Mikhail Glukhikh 2a9108bcd3 Fix "Too long character literal -> string" in ILLEGAL_ESCAPE
Related to #KT-23788
2018-05-22 16:38:29 +03:00
Toshiaki Kameyama 85cd1e938e Add "Too long character literal -> string" fix to ILLEGAL_ESCAPE error
So #KT-23788 Fixed
2018-05-22 16:19:41 +03:00