github.com/grafana/pyroscope@v1.18.0/pkg/og/storage/tree/serialize_test.go (about) 1 package tree 2 3 import ( 4 . "github.com/onsi/ginkgo/v2/dsl/core" 5 . "github.com/onsi/gomega" 6 ) 7 8 var _ = Describe("tree", func() { 9 Describe("Insert", func() { 10 tree := New() 11 tree.Insert([]byte("a;b"), uint64(1)) 12 tree.Insert([]byte("a;c"), uint64(2)) 13 14 It("correctly sets children nodes", func() { 15 Expect(tree.root.ChildrenNodes).To(HaveLen(1)) 16 }) 17 }) 18 })