Added suspend to upsertAll (it was missed in a previous PR)
Move the use of withContext to only wrap the mapping functions
Remove MainCoroutineRule from both TaskDaoTest and DefaultTaskRepositoryTest. In the latter, a testScope and testDispatcher are used to guarantee deterministic behaviour
Remove pluralization tasksRepository to taskRepository in line with other recent changes
Here's what I've done:
suspend
toupsertAll
(it was missed in a previous PR)withContext
to only wrap the mapping functionsMainCoroutineRule
from bothTaskDaoTest
andDefaultTaskRepositoryTest
. In the latter, atestScope
andtestDispatcher
are used to guarantee deterministic behaviourtasksRepository
totaskRepository
in line with other recent changes