mirror of
https://github.com/anyproto/any-sync.git
synced 2025-06-09 17:45:03 +09:00
21 lines
482 B
Go
21 lines
482 B
Go
package tree
|
|
|
|
import (
|
|
"context"
|
|
"github.com/anytypeio/go-anytype-infrastructure-experiments/app"
|
|
"github.com/anytypeio/go-anytype-infrastructure-experiments/pkg/acl/storage"
|
|
"testing"
|
|
)
|
|
|
|
func TestObjectTree(t *testing.T) {
|
|
a := &app.App{}
|
|
inmemory := storage.NewInMemoryTreeStorage(...)
|
|
app.RegisterWithType[storage.TreeStorage](a, inmemory)
|
|
app.RegisterWithType[]()
|
|
|
|
a.Start(context.Background())
|
|
objectTree := app.MustComponentWithType[ObjectTree](a).(ObjectTree)
|
|
|
|
|
|
|
|
}
|