(t *testing.T)
| 42 | } |
| 43 | |
| 44 | func 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 | |
| 56 | func TestBuildTreeStructureDeepNesting(t *testing.T) { |
| 57 | files := []scanner.FileInfo{ |
nothing calls this directly
no test coverage detected