Implement test list files

This commit is contained in:
2024-11-14 22:11:40 +01:00
parent e4510298ed
commit 408746187e
5 changed files with 98 additions and 9 deletions

View File

@@ -0,0 +1,12 @@
package storage_test
import (
"novamd/internal/storage"
"testing"
)
func SetupTestService(t *testing.T) (*storage.Service, *MapFS) {
fs := &MapFS{}
srv := storage.NewServiceWithFS("/test/root", fs)
return srv, fs
}