MCPcopy
hub / github.com/swagger-api/swagger-ui / getSystem

Function getSystem

test/unit/components/parameter-row.jsx:23–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21describe("<ParameterRow/>", () => {
22 const createProps = ({ param, isOAS3 }) => {
23 const getSystem = () => ({
24 getComponent: () => "div",
25 specSelectors: {
26 parameterWithMetaByIdentity: () => param,
27 isOAS3: () => isOAS3,
28 isSwagger2: () => !isOAS3,
29 },
30 fn: {
31 memoizedSampleFromSchema,
32 memoizedCreateXMLExample,
33 getSchemaObjectTypeLabel,
34 getSchemaObjectType,
35 getJsonSampleSchema: makeGetJsonSampleSchema(getSystem),
36 getYamlSampleSchema: makeGetYamlSampleSchema(getSystem),
37 getXmlSampleSchema: makeGetXmlSampleSchema(getSystem),
38 getSampleSchema: makeGetSampleSchema(getSystem),
39 mergeJsonSchema,
40 },
41 oas3Selectors: { activeExamplesMember: () => {} },
42 getConfigs: () => ({}),
43 })
44
45 return {
46 ...getSystem(),

Callers 15

createPropsFunction · 0.70
parameter-row.jsxFile · 0.70
getBoundSelectorsMethod · 0.50
wrapWithTryCatchFunction · 0.50
systemThunkMiddlewareFunction · 0.50
isFileUploadIntendedFunction · 0.50
makeGetJsonSampleSchemaFunction · 0.50
makeGetXmlSampleSchemaFunction · 0.50
makeGetYamlSampleSchemaFunction · 0.50
makeGetSampleSchemaFunction · 0.50
withSystemFunction · 0.50
renderMethod · 0.50

Calls 4

makeGetJsonSampleSchemaFunction · 0.50
makeGetYamlSampleSchemaFunction · 0.50
makeGetXmlSampleSchemaFunction · 0.50
makeGetSampleSchemaFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…