MCPcopy Index your code
hub / github.com/oapi-codegen/oapi-codegen / TestRefPathToObjName

Function TestRefPathToObjName

pkg/codegen/utils_test.go:724–736  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

722}
723
724func 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
738func TestLowercaseFirstCharacters(t *testing.T) {
739 tests := []struct {

Callers

nothing calls this directly

Calls 1

RefPathToObjNameFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…