(t *testing.T)
| 78 | } |
| 79 | |
| 80 | func TestRenderSlice_WithTitleDepth2(t *testing.T) { |
| 81 | var output strings.Builder |
| 82 | data := []int{10, 20} |
| 83 | val := reflect.ValueOf(data) |
| 84 | |
| 85 | renderSlice(val, "Deep List", &output, 2) |
| 86 | |
| 87 | result := output.String() |
| 88 | // Depth 2 should use ### header (depth + 1 = 3 hashes) |
| 89 | if !strings.Contains(result, "### Deep List") { |
| 90 | t.Errorf("Output should contain '### Deep List' header, got: %q", result) |
| 91 | } |
| 92 | } |
| 93 | |
| 94 | func TestRenderSlice_SimpleTypesAsList(t *testing.T) { |
| 95 | tests := []struct { |
nothing calls this directly
no test coverage detected