mirror of
https://github.com/lordmathis/lemma.git
synced 2025-11-06 07:54:22 +00:00
Implement test list files
This commit is contained in:
12
server/internal/storage/service_test.go
Normal file
12
server/internal/storage/service_test.go
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user