(t *testing.T)
| 238 | } |
| 239 | |
| 240 | func TestRenderSlice_SingleElementList(t *testing.T) { |
| 241 | var output strings.Builder |
| 242 | data := []string{"only one"} |
| 243 | val := reflect.ValueOf(data) |
| 244 | |
| 245 | renderSlice(val, "Single Item", &output, 0) |
| 246 | |
| 247 | result := output.String() |
| 248 | |
| 249 | if !strings.Contains(result, "# Single Item") { |
| 250 | t.Error("Output should contain title") |
| 251 | } |
| 252 | if !strings.Contains(result, "• only one") { |
| 253 | t.Error("Output should contain single list item") |
| 254 | } |
| 255 | } |
| 256 | |
| 257 | func TestRenderSlice_MixedContentInList(t *testing.T) { |
| 258 | var output strings.Builder |
nothing calls this directly
no test coverage detected