Skip to content

Commit

Permalink
style: wrap lines more than 150 characters in module owncloudDomain
Browse files Browse the repository at this point in the history
  • Loading branch information
JuancaG05 committed Dec 10, 2024
1 parent 97dcb77 commit 4937346
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ class GetFilesAvailableOfflineFromAccountAsStreamUseCase(
private val fileRepository: FileRepository
) : BaseUseCase<Flow<List<OCFileWithSyncInfo>>, GetFilesAvailableOfflineFromAccountAsStreamUseCase.Params>() {

override fun run(params: Params): Flow<List<OCFileWithSyncInfo>> = fileRepository.getFilesWithSyncInfoAvailableOfflineFromAccountAsFlow(params.owner)
override fun run(params: Params): Flow<List<OCFileWithSyncInfo>> =
fileRepository.getFilesWithSyncInfoAvailableOfflineFromAccountAsFlow(params.owner)

data class Params(
val owner: String
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ class GetServerInfoAsyncUseCaseTest {
verify(exactly = 1) { repository.getServerInfo(useCaseParams.serverPath, false, false) }
}

@Suppress("MaxLineLength")
@Test
fun `Should throw SSLErrorException when secureConnectionEnforced is true and ServerInfoRepository returns ServerInfo with isSecureConnection returning false`() {
every { repository.getServerInfo(useCaseParams.serverPath, false, false) } returns OC_INSECURE_SERVER_INFO_BASIC_AUTH
Expand All @@ -90,6 +91,7 @@ class GetServerInfoAsyncUseCaseTest {
verify(exactly = 1) { repository.getServerInfo(useCaseParams.serverPath, false, false) }
}

@Suppress("MaxLineLength")
@Test
fun `Should work correctly when secureConnectionEnforced is true and ServerInfoRepository returns ServerInfo with isSecureConnection returning true`() {
every { repository.getServerInfo(useCaseParams.serverPath, false, false) } returns OC_SECURE_SERVER_INFO_BASIC_AUTH
Expand Down

0 comments on commit 4937346

Please sign in to comment.