(t *testing.T)
| 15 | } |
| 16 | |
| 17 | func TestRenderSlice_EmptySlice(t *testing.T) { |
| 18 | var output strings.Builder |
| 19 | emptySlice := []int{} |
| 20 | val := reflect.ValueOf(emptySlice) |
| 21 | |
| 22 | renderSlice(val, "Empty List", &output, 0) |
| 23 | |
| 24 | // Empty slice should produce no output |
| 25 | if output.String() != "" { |
| 26 | t.Errorf("Empty slice should produce no output, got: %q", output.String()) |
| 27 | } |
| 28 | } |
| 29 | |
| 30 | func TestRenderSlice_NoTitle(t *testing.T) { |
| 31 | var output strings.Builder |
nothing calls this directly
no test coverage detected