(t *testing.T)
| 223 | } |
| 224 | |
| 225 | func TestRenderSlice_EmptyStructSliceAsTable(t *testing.T) { |
| 226 | var output strings.Builder |
| 227 | data := []SliceTestStruct{} |
| 228 | val := reflect.ValueOf(data) |
| 229 | |
| 230 | renderSlice(val, "Empty Structs", &output, 0) |
| 231 | |
| 232 | result := output.String() |
| 233 | |
| 234 | // Empty slice should produce no output (early return) |
| 235 | if result != "" { |
| 236 | t.Errorf("Empty struct slice should produce no output, got: %q", result) |
| 237 | } |
| 238 | } |
| 239 | |
| 240 | func TestRenderSlice_SingleElementList(t *testing.T) { |
| 241 | var output strings.Builder |
nothing calls this directly
no test coverage detected