style(test): satisfy ktlint in new folder-label tests
Body expression on the signature line (function-signature) and one argument per wrapped line (argument-list-wrapping) in the tests added for drawer folder de-duplication. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -133,8 +133,13 @@ class LibreMailDatabaseTest {
|
||||
"acct",
|
||||
listOf(
|
||||
FolderEntity(
|
||||
"acct", "[Gmail]/Sent Mail", "Sent Mail", "SENT",
|
||||
selectable = true, sortOrder = 1, specialUse = true,
|
||||
accountId = "acct",
|
||||
fullName = "[Gmail]/Sent Mail",
|
||||
displayName = "Sent Mail",
|
||||
role = "SENT",
|
||||
selectable = true,
|
||||
sortOrder = 1,
|
||||
specialUse = true,
|
||||
),
|
||||
FolderEntity("acct", "INBOX", "INBOX", "INBOX", selectable = true, sortOrder = 0),
|
||||
),
|
||||
|
||||
@@ -19,15 +19,14 @@ class FolderLabelsTest {
|
||||
specialUse: Boolean = false,
|
||||
) = Folder("acct", fullName, displayName, role, selectable = true, specialUse = specialUse)
|
||||
|
||||
private fun account(email: String, imapHost: String, authType: AuthType = AuthType.PASSWORD_IMAP) =
|
||||
Account(
|
||||
id = "acct",
|
||||
email = email,
|
||||
displayName = email,
|
||||
authType = authType,
|
||||
imap = ServerConfig(imapHost, 993, MailSecurity.SSL_TLS),
|
||||
smtp = ServerConfig("smtp", 587, MailSecurity.STARTTLS),
|
||||
)
|
||||
private fun account(email: String, imapHost: String, authType: AuthType = AuthType.PASSWORD_IMAP) = Account(
|
||||
id = "acct",
|
||||
email = email,
|
||||
displayName = email,
|
||||
authType = authType,
|
||||
imap = ServerConfig(imapHost, 993, MailSecurity.SSL_TLS),
|
||||
smtp = ServerConfig("smtp", 587, MailSecurity.STARTTLS),
|
||||
)
|
||||
|
||||
/** Builds base labels the way the drawer does: the friendly role name, else the raw display name. */
|
||||
private fun baseLabelsOf(folders: List<Folder>, friendly: Map<FolderRole, String>) =
|
||||
|
||||
Reference in New Issue
Block a user