Skip to content

Commit 9b0786d

Browse files
committed
fix: commit speed
Analysis did not like methods named 'suspend'
1 parent 7d5a26d commit 9b0786d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

AnkiDroid/src/test/java/com/ichi2/anki/browser/CardBrowserViewModelTest.kt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ class CardBrowserViewModelTest : JvmTest() {
532532
@Test
533533
fun `suspend - cards - some suspended`() =
534534
runViewModelTest(notes = 2) {
535-
suspend(cards.first().toCardId(cardsOrNotes))
535+
suspendCards(cards.first().toCardId(cardsOrNotes))
536536
ensureOpsExecuted(1) {
537537
selectAll()
538538
toggleSuspendCards()
@@ -576,7 +576,7 @@ class CardBrowserViewModelTest : JvmTest() {
576576
fun `suspend - notes - some notes suspended`() =
577577
runViewModelNotesTest(notes = 2) {
578578
val nid = cards.first().cardOrNoteId
579-
suspend(col.getNote(nid))
579+
suspendNote(col.getNote(nid))
580580
ensureOpsExecuted(1) {
581581
selectAll()
582582
toggleSuspendCards()
@@ -588,7 +588,7 @@ class CardBrowserViewModelTest : JvmTest() {
588588
fun `suspend - notes - some cards suspended`() =
589589
runViewModelNotesTest(notes = 2) {
590590
// this suspends o single cid from a nid
591-
suspend(cards.first().toCardId(cardsOrNotes) as CardId)
591+
suspendCards(cards.first().toCardId(cardsOrNotes) as CardId)
592592
ensureOpsExecuted(1) {
593593
selectAll()
594594
toggleSuspendCards()
@@ -1207,11 +1207,11 @@ private fun TestClass.suspendAll() {
12071207
}
12081208
}
12091209

1210-
private fun TestClass.suspend(vararg cardIds: CardId) {
1210+
private fun TestClass.suspendCards(vararg cardIds: CardId) {
12111211
col.sched.suspendCards(ids = cardIds.toList())
12121212
}
12131213

1214-
private fun TestClass.suspend(note: Note) {
1214+
private fun TestClass.suspendNote(note: Note) {
12151215
col.sched.suspendCards(note.cardIds(col))
12161216
}
12171217

0 commit comments

Comments
 (0)