Toggle navigation
Toggle navigation
此项目
正在载入...
Sign in
xuning
/
livekitAndroidXuningTest
转到一个项目
Toggle navigation
项目
群组
代码片段
帮助
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
David Liu
2021-12-07 20:03:51 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
e00eb4e426a257af5b00c77e77089ed9ff15fecb
e00eb4e4
1 parent
c5aa3c6d
more tests for MediaTrackEqualsDetectorTest
隐藏空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
26 行增加
和
2 行删除
livekit-lint/src/test/java/io/livekit/lint/MediaTrackEqualsDetectorTest.kt
livekit-lint/src/test/java/io/livekit/lint/MediaTrackEqualsDetectorTest.kt
查看文件 @
e00eb4e
...
...
@@ -147,7 +147,7 @@ class MediaTrackEqualsDetectorTest {
fun foo() : Boolean {
val a = MediaStreamTrack()
val b = MediaStreamTrack()
return a ==
=
b;
return a == b;
}
}"""
).indented()
...
...
@@ -172,7 +172,7 @@ class MediaTrackEqualsDetectorTest {
fun foo() : Boolean {
val a = MediaStreamTrack()
val b = MediaStreamTrack()
return a == b
return a ==
=
b
}
}"""
).indented()
...
...
@@ -182,6 +182,30 @@ class MediaTrackEqualsDetectorTest {
.expectErrorCount(1)
}
@Test
fun kotlinMediaTrackEquals() {
lint()
.allowMissingSdk()
.files(
mediaStreamTrack(),
kotlin(
"""
package foo
import org.webrtc.MediaStreamTrack
class Example {
fun foo() : Boolean {
val a = MediaStreamTrack()
val b = MediaStreamTrack()
return a.equals(b)
}
}"""
).indented()
)
.issues(MediaTrackEqualsDetector.ISSUE)
.run()
.expectErrorCount(1)
}
@Test
fun kotlinProperMediaTrackEquality() {
...
...
请
注册
或
登录
后发表评论