(t *testing.T)
| 722 | } |
| 723 | |
| 724 | func TestRefPathToObjName(t *testing.T) { |
| 725 | t.Parallel() |
| 726 | |
| 727 | for in, want := range map[string]string{ |
| 728 | "#/components/schemas/Foo": "Foo", |
| 729 | "#/components/parameters/Bar": "Bar", |
| 730 | "#/components/responses/baz_baz": "baz_baz", |
| 731 | "document.json#/Foo": "Foo", |
| 732 | "http://deepmap.com/schemas/document.json#/objObj": "objObj", |
| 733 | } { |
| 734 | assert.Equal(t, want, RefPathToObjName(in)) |
| 735 | } |
| 736 | } |
| 737 | |
| 738 | func TestLowercaseFirstCharacters(t *testing.T) { |
| 739 | tests := []struct { |
nothing calls this directly
no test coverage detected
searching dependent graphs…