(t *testing.T)
| 27 | ) |
| 28 | |
| 29 | func TestUpdateGo(t *testing.T) { |
| 30 | t.Parallel() |
| 31 | t.Run("valid", func(t *testing.T) { |
| 32 | t.Parallel() |
| 33 | res := runTest(t, "testdata/update-go/valid", "update-go") |
| 34 | res.assertOutput("", "") |
| 35 | res.assertNoErr() |
| 36 | res.checkGolden() |
| 37 | }) |
| 38 | |
| 39 | t.Run("invalid", func(t *testing.T) { |
| 40 | t.Parallel() |
| 41 | res := runTest(t, "testdata/update-go/invalid", "update-go") |
| 42 | res.assertOutput("", "") |
| 43 | res.assertErr(` |
| 44 | no operations defined for AService.NoOperation |
| 45 | no operations defined for AService.NoComment |
| 46 | ambiguous operation "GET /ambiguous/{}" could match any of: [GET /ambiguous/{id} GET /ambiguous/{name}] |
| 47 | could not find operation "GET /missing/{id}" in openapi_operations.yaml |
| 48 | duplicate operation: GET /a/{a_id} |
| 49 | `) |
| 50 | res.checkGolden() |
| 51 | }) |
| 52 | } |
| 53 | |
| 54 | func TestUnused(t *testing.T) { |
| 55 | t.Parallel() |
nothing calls this directly
no test coverage detected
searching dependent graphs…