MCPcopy
hub / github.com/etcd-io/etcd / Len

Method Len

pkg/adt/interval_tree.go:192–192  ·  view source on GitHub ↗

Len gives the number of elements in the tree.

()

Source from the content-addressed store, hash-verified

190 Delete(ivl Interval) bool
191 // Len gives the number of elements in the tree.
192 Len() int
193 // Height is the number of levels in the tree; one node has height 1.
194 Height() int
195 // MaxHeight is the expected maximum tree height given the number of nodes.

Callers 15

TestIntervalTreeRandomFunction · 0.95
TestUniqueURLsFromFlagFunction · 0.65
TestGetTimeseriesFunction · 0.65
TestIntervalTreeStabFunction · 0.65
TestTracingFunction · 0.65
TestEtcdEndpointManagerFunction · 0.65
TestLeasingGetNoLeaseTTLFunction · 0.65
TestLogObserver_TimeoutFunction · 0.65

Implementers 1

intervalTreepkg/adt/interval_tree.go

Calls

no outgoing calls

Tested by 15

TestIntervalTreeRandomFunction · 0.76
TestUniqueURLsFromFlagFunction · 0.52
TestGetTimeseriesFunction · 0.52
TestIntervalTreeStabFunction · 0.52
TestTracingFunction · 0.52
TestEtcdEndpointManagerFunction · 0.52
TestLeasingGetNoLeaseTTLFunction · 0.52
TestLogObserver_TimeoutFunction · 0.52