[skip ci] Formatting

This commit is contained in:
Syer10
2024-09-03 21:37:18 -04:00
parent e968a2195a
commit 6c1fbfa63b
220 changed files with 2493 additions and 2519 deletions

View File

@@ -31,25 +31,24 @@ fun setLoggingEnabled(enabled: Boolean = true) {
const val BASE_PATH = "build/tmp/TestDesk"
fun createLibraryManga(_title: String): Int {
return transaction {
MangaTable.insertAndGetId {
it[title] = _title
it[url] = _title
it[sourceReference] = 1
it[inLibrary] = true
}.value
fun createLibraryManga(_title: String): Int =
transaction {
MangaTable
.insertAndGetId {
it[title] = _title
it[url] = _title
it[sourceReference] = 1
it[inLibrary] = true
}.value
}
}
fun createSMangas(count: Int): List<SManga> {
return (0 until count).map {
fun createSMangas(count: Int): List<SManga> =
(0 until count).map {
SManga.create().apply {
title = "Manga $it"
url = "https://$title"
}
}
}
fun createChapters(
mangaId: Int,