(t *testing.T)
| 107 | } |
| 108 | |
| 109 | func TestDryRunAPI_ExtraFieldsOnly(t *testing.T) { |
| 110 | dr := NewDryRunAPI(). |
| 111 | Desc("info only"). |
| 112 | Set("calendar_id", "cal_123"). |
| 113 | Set("summary", "My Calendar") |
| 114 | |
| 115 | text := dr.Format() |
| 116 | if !strings.Contains(text, "calendar_id: cal_123") { |
| 117 | t.Errorf("expected extra field, got: %s", text) |
| 118 | } |
| 119 | if !strings.Contains(text, "summary: My Calendar") { |
| 120 | t.Errorf("expected extra field, got: %s", text) |
| 121 | } |
| 122 | } |
| 123 | |
| 124 | func TestPrintDryRun_JSON(t *testing.T) { |
| 125 | var buf bytes.Buffer |
nothing calls this directly
no test coverage detected