【文件属性】:
文件名称:flow-test-observer:Kotlin Flow 测试从未如此简单
文件大小:75KB
文件格式:ZIP
更新时间:2021-05-29 10:09:49
Kotlin
Kotlin Flow 测试观察者
受TestSubscriber的启发的库。 适用于冷/有限流和热/无限流。 在此查找有关该库动机的更多信息。
入门
设置依赖
步骤 1. 将 JitPack 存储库添加到您的构建文件中将其添加到存储库末尾的根build.gradle中:
allprojects {
repositories {
.. .
maven { url ' https://jitpack.io ' }
}
}
步骤 2. 添加依赖项
testImplementation " org.jetbrains.kotlinx:kotlinx-coroutines-test: $l atest "
testImplementation " com.github.ologe:flow-test-observer:1.x.y "
(请将x
【文件预览】:
flow-test-observer-master
----.gitignore(22B)
----gradle()
--------wrapper()
----README.md(2KB)
----build.gradle(2KB)
----CHANGELOG.md(1KB)
----gradlew.bat(2KB)
----gradlew(5KB)
----LICENSE(1KB)
----src()
--------test()
--------main()
----gradle.properties(26B)
----.travis.yml(89B)
----settings.gradle(40B)