Skip to content

Commit 3acfaee

Browse files
committed
Rename and improve lint test that verifies fall positives are gone.
1 parent e8811c7 commit 3acfaee

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tools/lint/src/test/kotlin/ProviderAssignmentDetectorTests.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,14 +88,16 @@ class ProviderAssignmentDetectorTests : LintDetectorTest() {
8888
.expectClean()
8989
}
9090

91-
fun test_assignmentAnssdUseOfProvider_shouldSucceed() {
91+
fun test_assignmentOfAPropertyOrMethodOfTheProvidedObject_shouldSucceed() {
9292
lint().files(java(providerSource()), java("""
9393
import com.google.firebase.inject.Provider;
9494
9595
class Foo {
9696
private final int length;
97+
private final String s;
9798
Foo(Provider<String> p) {
9899
length = p.get().length;
100+
s = p.get().toString();
99101
}
100102
}
101103
""".trimIndent()))

0 commit comments

Comments
 (0)