MCPcopy Index your code
hub / github.com/TheAlgorithms/Go / TestTree

Interface TestTree

structure/tree/example_test.go:11–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9)
10
11type TestTree[T constraints.Ordered] interface {
12 Push(...T)
13 Delete(T) bool
14 Get(T) (bt.Node[T], bool)
15 Empty() bool
16 Has(T) bool
17 Depth() int
18 Max() (T, bool)
19 Min() (T, bool)
20 Predecessor(T) (T, bool)
21 Successor(T) (T, bool)
22 PreOrder() []T
23 InOrder() []T
24 PostOrder() []T
25 LevelOrder() []T
26 AccessNodesByLayer() [][]T
27}
28
29// BinarySearch, AVL and RB have completed the `TestTree` interface.
30var (

Callers 85

testFuncFunction · 0.65
TestRBTreePushFunction · 0.65
TestRBTreeDeleteFunction · 0.65
TestRBTreeFunction · 0.65
TestRBTreeStringFunction · 0.65
TestPushFunction · 0.65
TestDeleteFunction · 0.65
TestBinarySearchFunction · 0.65
TestRBTreeDeleteFunction · 0.65
TestRBTreeFunction · 0.65
TestRBTreeStringFunction · 0.65
TestDeleteFunction · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected