(t *testing.T)
| 28 | } |
| 29 | |
| 30 | func TestRenderSlice_NoTitle(t *testing.T) { |
| 31 | var output strings.Builder |
| 32 | data := []int{1, 2, 3} |
| 33 | val := reflect.ValueOf(data) |
| 34 | |
| 35 | renderSlice(val, "", &output, 0) |
| 36 | |
| 37 | result := output.String() |
| 38 | // Should not have title header |
| 39 | if strings.Contains(result, "#") { |
| 40 | t.Errorf("Output with no title should not contain header markers, got: %q", result) |
| 41 | } |
| 42 | // Should have list items |
| 43 | if !strings.Contains(result, "•") { |
| 44 | t.Error("Output should contain list bullet points") |
| 45 | } |
| 46 | } |
| 47 | |
| 48 | func TestRenderSlice_WithTitleDepth0(t *testing.T) { |
| 49 | var output strings.Builder |
nothing calls this directly
no test coverage detected