MCPcopy Index your code
hub / github.com/go-openapi/jsonpointer / TestSetDefaultNameProvider_nilIgnored

Function TestSetDefaultNameProvider_nilIgnored

options_test.go:106–113  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

104}
105
106func TestSetDefaultNameProvider_nilIgnored(t *testing.T) {
107 // Not Parallel: mutates package state.
108 original := DefaultNameProvider()
109 t.Cleanup(func() { SetDefaultNameProvider(original) })
110
111 SetDefaultNameProvider(nil)
112 assert.Same(t, original, DefaultNameProvider(), "nil must be a no-op")
113}
114
115func TestUseGoNameProvider_resolvesUntaggedFields(t *testing.T) {
116 // Not Parallel: mutates package state.

Callers

nothing calls this directly

Calls 2

DefaultNameProviderFunction · 0.85
SetDefaultNameProviderFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…