(t *testing.T)
| 14 | ) |
| 15 | |
| 16 | func TestDryRunAPI_SingleGET(t *testing.T) { |
| 17 | dr := NewDryRunAPI(). |
| 18 | Desc("list calendars"). |
| 19 | GET("/open-apis/calendar/v4/calendars") |
| 20 | |
| 21 | text := dr.Format() |
| 22 | if !strings.Contains(text, "# list calendars") { |
| 23 | t.Errorf("expected description in text output, got: %s", text) |
| 24 | } |
| 25 | if !strings.Contains(text, "GET /open-apis/calendar/v4/calendars") { |
| 26 | t.Errorf("expected GET line in text output, got: %s", text) |
| 27 | } |
| 28 | } |
| 29 | |
| 30 | func TestDryRunAPI_WithParams(t *testing.T) { |
| 31 | dr := NewDryRunAPI(). |
nothing calls this directly
no test coverage detected