(t *testing.T)
| 53 | } |
| 54 | |
| 55 | func TestDryRunAPI_ResolveURL(t *testing.T) { |
| 56 | dr := NewDryRunAPI(). |
| 57 | GET("/open-apis/calendar/v4/calendars/:calendar_id/events"). |
| 58 | Set("calendar_id", "cal_abc123") |
| 59 | |
| 60 | text := dr.Format() |
| 61 | if !strings.Contains(text, "cal_abc123") { |
| 62 | t.Errorf("expected resolved calendar_id in URL, got: %s", text) |
| 63 | } |
| 64 | if strings.Contains(text, ":calendar_id") { |
| 65 | t.Errorf("expected placeholder to be resolved, got: %s", text) |
| 66 | } |
| 67 | } |
| 68 | |
| 69 | func TestDryRunAPI_MarshalJSON(t *testing.T) { |
| 70 | dr := NewDryRunAPI(). |
nothing calls this directly
no test coverage detected