Modify comments to ''@TestOnly' annotation

pull/1320/head
yongsuk44 2 years ago
parent b8464bb9df
commit a04a6bf5ac

@ -24,6 +24,7 @@ import kotlinx.coroutines.channels.BufferOverflow.DROP_OLDEST
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.MutableSharedFlow
import kotlinx.coroutines.flow.filterNotNull
import org.jetbrains.annotations.TestOnly
val emptyUserData = UserData(
bookmarkedNewsResources = emptySet(),
@ -112,9 +113,7 @@ class TestUserDataRepository : UserDataRepository {
}
}
/**
* A test-only API to allow setting of user data directly.
*/
@TestOnly
fun setUserData(userData: UserData) {
_userData.tryEmit(userData)
}

Loading…
Cancel
Save