Skip to content

Commit

Permalink
GT-2200 Update Test Coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
gyasistory committed Nov 4, 2024
1 parent 3fa0c4c commit b881a5e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,10 @@ class GodToolsAccountManagerTest {

@Test
fun verifyInjectedProvidersSorted() {
val manager = GodToolsAccountManager(providers = setOf(provider2, provider1), userApi = { userApi })
val manager = GodToolsAccountManager(
providers = setOf(provider2, provider1),
userApi = { userApi },
)
assertEquals(listOf(provider1, provider2), manager.providers)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ class LoginResponseTest {
assertEquals(LoginResponse.Error.UserAlreadyExists, readParcelable(data))
}

@Test
fun `LoginResponse - Error - NotConnected - Parcelable`() {
val data = writeParcelable(LoginResponse.Error.NotConnected)
assertEquals(LoginResponse.Error.NotConnected, readParcelable(data))
}

private fun writeParcelable(obj: Parcelable) = Parcel.obtain()
.apply { writeParcelable(obj, 0) }
.marshall()
Expand Down

0 comments on commit b881a5e

Please sign in to comment.