* Fix test setup

* Fix tests

* Disable broken CloudflareTest

* Add a basic test for Android's Looper
This commit is contained in:
Constantin Piber
2026-05-18 20:04:39 +02:00
committed by GitHub
parent 762d5bdbe6
commit 779229a48a
11 changed files with 149 additions and 31 deletions

View File

@@ -7,12 +7,21 @@ package suwayomi.tachidesk.manga.model.dataclass
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
import java.util.Objects
import kotlin.math.min
open class PaginatedList<T>(
val page: List<T>,
val hasNextPage: Boolean,
)
) {
override fun equals(other: Any?): Boolean {
if (this === other) return true
if (other !is PaginatedList<T>) return false
return page == other.page && hasNextPage == other.hasNextPage
}
override fun hashCode(): Int = Objects.hash(page, hasNextPage)
}
const val PAGINATION_FACTOR = 50