Skip to content

Commit 8eb11d9

Browse files
committed
Fix some tests
1 parent 4f8c065 commit 8eb11d9

File tree

4 files changed

+29
-0
lines changed

4 files changed

+29
-0
lines changed

idea/testData/inspectionsLocal/branched/ifThenToElvis/inspectionData/expected.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,4 +98,13 @@
9898
<problem_class severity="INFO" attribute_key="INFO_ATTRIBUTES">If-Then foldable to '?:'</problem_class>
9999
<description>If-Then foldable to '?:'</description>
100100
</problem>
101+
<problem>
102+
<file>longLine.kt</file>
103+
<line>8</line>
104+
<module>light_idea_test_case</module>
105+
<package>longLine</package>
106+
<entry_point TYPE="method" FQNAME="longLine.LongLineKt void main()" />
107+
<problem_class severity="INFO" attribute_key="INFO_ATTRIBUTES">If-Then foldable to '?:'</problem_class>
108+
<description>If-Then foldable to '?:'</description>
109+
</problem>
101110
</problems>

idea/testData/inspectionsLocal/branched/ifThenToElvis/notApplicableForSimpleKotlinNPE.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// PROBLEM: none
22
// WITH_RUNTIME
3+
// DISABLE-ERRORS
34
fun main(args: Array<String>) {
45
val t: String? = "abc"
56
if (t != null<caret>) t else throw KotlinNullPointerException()

idea/testData/inspectionsLocal/branched/ifThenToElvis/notApplicableForSimpleNPE.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// PROBLEM: none
22
// WITH_RUNTIME
3+
// DISABLE-ERRORS
34
fun main(args: Array<String>) {
45
val t: String? = "abc"
56
if (t == null<caret>) throw NullPointerException() else t

idea/testData/inspectionsLocal/branched/ifThenToSafeAccess/inspectionData/expected.xml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,4 +145,22 @@
145145
<problem_class severity="INFO" attribute_key="INFO_ATTRIBUTES">If-Then foldable to '?.'</problem_class>
146146
<description>Foldable if-then</description>
147147
</problem>
148+
<problem>
149+
<file>resultCall.kt</file>
150+
<line>6</line>
151+
<module>light_idea_test_case</module>
152+
<package>resultCall</package>
153+
<entry_point TYPE="field" FQNAME="resultCall.ResultCallKt result" />
154+
<problem_class severity="INFO" attribute_key="INFO_ATTRIBUTES">If-Then foldable to '?.'</problem_class>
155+
<description>Foldable if-then</description>
156+
</problem>
157+
<problem>
158+
<file>noStdResultInCallChain.kt</file>
159+
<line>7</line>
160+
<module>light_idea_test_case</module>
161+
<package>noStdResultInCallChain</package>
162+
<entry_point TYPE="field" FQNAME="noStdResultInCallChain.NoStdResultInCallChainKt result" />
163+
<problem_class severity="INFO" attribute_key="INFO_ATTRIBUTES">If-Then foldable to '?.'</problem_class>
164+
<description>Foldable if-then</description>
165+
</problem>
148166
</problems>

0 commit comments

Comments
 (0)