View test reports →

Coverage Summary for Class: HttpRepository (dev.skymansandy.wiretap.domain.repository)

Class Method, % Branch, % Line, % Instruction, %
HttpRepository 0% (0/1) 0% (0/1) 0% (0/25)
HttpRepository$DefaultImpls
Total 0% (0/1) 0% (0/1) 0% (0/25)


 /*
  * Copyright (c) 2026 skymansandy. All rights reserved.
  */
 
 package dev.skymansandy.wiretap.domain.repository
 
 import androidx.paging.PagingData
 import dev.skymansandy.wiretap.domain.model.HttpLog
 import dev.skymansandy.wiretap.domain.model.HttpLogFilter
 import kotlinx.coroutines.flow.Flow
 
 interface HttpRepository {
 
     fun flowAll(): Flow<List<HttpLog>>
 
     fun flowDistinctHosts(): Flow<List<String>>
 
     fun flowPagesLogs(query: String, filter: HttpLogFilter = HttpLogFilter()): Flow<PagingData<HttpLog>>
 
     fun flowById(id: Long): Flow<HttpLog?>
 
     suspend fun save(log: HttpLog)
 
     suspend fun saveAndGetId(log: HttpLog): Long
 
     suspend fun update(log: HttpLog)
 
     suspend fun getById(id: Long): HttpLog?
 
     suspend fun deleteById(id: Long)
 
     suspend fun deleteOlderThan(timestamp: Long)
 
     suspend fun clearAll()
 
     suspend fun markCancelledIfInProgress(id: Long)
 }