MCPcopy Create free account
hub / github.com/JordanCoin/codemap / TestBuildTreeStructureEmpty

Function TestBuildTreeStructureEmpty

render/tree_test.go:44–54  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

42}
43
44func TestBuildTreeStructureEmpty(t *testing.T) {
45 files := []scanner.FileInfo{}
46 root := buildTreeStructure(files)
47
48 if root == nil {
49 t.Fatal("Root should not be nil")
50 }
51 if len(root.children) != 0 {
52 t.Error("Empty file list should produce empty tree")
53 }
54}
55
56func TestBuildTreeStructureDeepNesting(t *testing.T) {
57 files := []scanner.FileInfo{

Callers

nothing calls this directly

Calls 2

buildTreeStructureFunction · 0.85
ErrorMethod · 0.45

Tested by

no test coverage detected