MCPcopy Index your code
hub / github.com/simstudioai/sim / mockValueForType

Function mockValueForType

apps/sim/lib/workflows/triggers/run-options.ts:127–143  ·  view source on GitHub ↗
(type: string | undefined, name: string)

Source from the content-addressed store, hash-verified

125}
126
127function mockValueForType(type: string | undefined, name: string): unknown {
128 switch (type) {
129 case 'number':
130 return 42
131 case 'boolean':
132 return true
133 case 'array':
134 return []
135 case 'object':
136 return {}
137 case 'files':
138 case 'file[]':
139 return []
140 default:
141 return `mock_${name}`
142 }
143}
144
145function buildFieldsSample(inputFormat: InputFormatField[]): Record<string, unknown> {
146 const sample: Record<string, unknown> = {}

Callers 1

buildFieldsSampleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected