mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-10-10 04:47:53 +00:00
26 lines
547 B
Go
26 lines
547 B
Go
package db
|
|
|
|
import (
|
|
"log"
|
|
"testing"
|
|
|
|
"github.com/davecgh/go-spew/spew"
|
|
. "github.com/smartystreets/goconvey/convey"
|
|
"github.com/umbel/pilosa/util"
|
|
)
|
|
|
|
func TestTopology(t *testing.T) {
|
|
Convey("Basic DB structures", t, func() {
|
|
log.Println("topology test")
|
|
|
|
cluster := NewCluster()
|
|
database := cluster.GetOrCreateDatabase("main")
|
|
|
|
frame := database.GetOrCreateFrame("general")
|
|
slice := database.GetOrCreateSlice(0)
|
|
|
|
fragment_id := util.Id()
|
|
spew.Dump(fragment_id)
|
|
database.GetOrCreateFragment(frame, slice, fragment_id)
|
|
})
|
|
}
|