mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-10-31 08:15:02 +00:00
Move viewfolder/impl tests to the features.viewfolder.impl package
The tests and fakes were in `features.viewfolder.test.*`, which looks like a package of a test module, while they are in the `impl` module and test code from `features.viewfolder.impl.*`. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
+1
-3
@@ -6,9 +6,7 @@
|
||||
* Please see LICENSE files in the repository root for full details.
|
||||
*/
|
||||
|
||||
package io.element.android.features.viewfolder.test.file
|
||||
|
||||
import io.element.android.features.viewfolder.impl.file.FileContentReader
|
||||
package io.element.android.features.viewfolder.impl.file
|
||||
|
||||
class FakeFileContentReader : FileContentReader {
|
||||
private var result: Result<List<String>> = Result.success(emptyList())
|
||||
+1
-3
@@ -6,9 +6,7 @@
|
||||
* Please see LICENSE files in the repository root for full details.
|
||||
*/
|
||||
|
||||
package io.element.android.features.viewfolder.test.file
|
||||
|
||||
import io.element.android.features.viewfolder.impl.file.FileSave
|
||||
package io.element.android.features.viewfolder.impl.file
|
||||
|
||||
class FakeFileSave : FileSave {
|
||||
var hasBeenCalled = false
|
||||
+1
-3
@@ -6,9 +6,7 @@
|
||||
* Please see LICENSE files in the repository root for full details.
|
||||
*/
|
||||
|
||||
package io.element.android.features.viewfolder.test.file
|
||||
|
||||
import io.element.android.features.viewfolder.impl.file.FileShare
|
||||
package io.element.android.features.viewfolder.impl.file
|
||||
|
||||
class FakeFileShare : FileShare {
|
||||
var hasBeenCalled = false
|
||||
+1
-7
@@ -6,18 +6,12 @@
|
||||
* Please see LICENSE files in the repository root for full details.
|
||||
*/
|
||||
|
||||
package io.element.android.features.viewfolder.test.file
|
||||
package io.element.android.features.viewfolder.impl.file
|
||||
|
||||
import app.cash.molecule.RecompositionMode
|
||||
import app.cash.molecule.moleculeFlow
|
||||
import app.cash.turbine.test
|
||||
import com.google.common.truth.Truth.assertThat
|
||||
import io.element.android.features.viewfolder.impl.file.ColorationMode
|
||||
import io.element.android.features.viewfolder.impl.file.FileContentReader
|
||||
import io.element.android.features.viewfolder.impl.file.FileSave
|
||||
import io.element.android.features.viewfolder.impl.file.FileShare
|
||||
import io.element.android.features.viewfolder.impl.file.ViewFileEvent
|
||||
import io.element.android.features.viewfolder.impl.file.ViewFilePresenter
|
||||
import io.element.android.libraries.androidutils.clipboard.ClipboardHelper
|
||||
import io.element.android.libraries.androidutils.clipboard.FakeClipboardHelper
|
||||
import io.element.android.libraries.androidutils.toast.FakeToastHelper
|
||||
+1
-2
@@ -6,9 +6,8 @@
|
||||
* Please see LICENSE files in the repository root for full details.
|
||||
*/
|
||||
|
||||
package io.element.android.features.viewfolder.test.folder
|
||||
package io.element.android.features.viewfolder.impl.folder
|
||||
|
||||
import io.element.android.features.viewfolder.impl.folder.FolderExplorer
|
||||
import io.element.android.features.viewfolder.impl.model.Item
|
||||
|
||||
class FakeFolderExplorer : FolderExplorer {
|
||||
+1
-3
@@ -6,14 +6,12 @@
|
||||
* Please see LICENSE files in the repository root for full details.
|
||||
*/
|
||||
|
||||
package io.element.android.features.viewfolder.test.folder
|
||||
package io.element.android.features.viewfolder.impl.folder
|
||||
|
||||
import app.cash.molecule.RecompositionMode
|
||||
import app.cash.molecule.moleculeFlow
|
||||
import app.cash.turbine.test
|
||||
import com.google.common.truth.Truth.assertThat
|
||||
import io.element.android.features.viewfolder.impl.folder.FolderExplorer
|
||||
import io.element.android.features.viewfolder.impl.folder.ViewFolderPresenter
|
||||
import io.element.android.features.viewfolder.impl.model.Item
|
||||
import io.element.android.libraries.core.meta.BuildMeta
|
||||
import io.element.android.libraries.matrix.test.core.aBuildMeta
|
||||
Reference in New Issue
Block a user