mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-10-10 04:47:53 +00:00
30 lines
580 B
Go
30 lines
580 B
Go
package db
|
|
|
|
import (
|
|
"log"
|
|
"pilosa/util"
|
|
"testing"
|
|
|
|
"github.com/davecgh/go-spew/spew"
|
|
. "github.com/smartystreets/goconvey/convey"
|
|
)
|
|
|
|
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)
|
|
|
|
// spew.Dump(database)
|
|
// spew.Dump("DONE")
|
|
|
|
})
|
|
}
|