(t *testing.T)
| 10 | ) |
| 11 | |
| 12 | func Test_normalizedOpName(t *testing.T) { |
| 13 | t.Parallel() |
| 14 | for _, td := range []struct { |
| 15 | name string |
| 16 | want string |
| 17 | }{ |
| 18 | {name: "", want: ""}, |
| 19 | {name: "get /foo/{id}", want: "GET /foo/*"}, |
| 20 | {name: "get foo", want: "GET /foo"}, |
| 21 | } { |
| 22 | t.Run(td.name, func(t *testing.T) { |
| 23 | t.Parallel() |
| 24 | got := normalizedOpName(td.name) |
| 25 | if got != td.want { |
| 26 | t.Errorf("normalizedOpName() = %v, want %v", got, td.want) |
| 27 | } |
| 28 | }) |
| 29 | } |
| 30 | } |
| 31 | |
| 32 | func Test_normalizeDocURL(t *testing.T) { |
| 33 | t.Parallel() |
nothing calls this directly
no test coverage detected
searching dependent graphs…