MCPcopy Index your code
hub / github.com/dagger/dagger / invoke

Function invoke

toolchains/engine-dev/dagger.gen.go:248–1146  ·  view source on GitHub ↗
(ctx context.Context, parentJSON []byte, parentName string, fnName string, inputArgs map[string][]byte)

Source from the content-addressed store, hash-verified

246 return nil
247}
248func invoke(ctx context.Context, parentJSON []byte, parentName string, fnName string, inputArgs map[string][]byte) (_ any, err error) {
249 _ = inputArgs
250 switch parentName {
251 case "EngineDev":
252 switch fnName {
253 case "Benchmark":
254 var parent EngineDev
255 err = json.Unmarshal(parentJSON, &parent)
256 if err != nil {
257 panic(fmt.Errorf("%s: %w", "failed to unmarshal parent object", err))
258 }
259 var run string
260 if inputArgs["run"] != nil {
261 err = json.Unmarshal([]byte(inputArgs["run"]), &run)
262 if err != nil {
263 panic(fmt.Errorf("%s: %w", "failed to unmarshal input arg run", err))
264 }
265 }
266 var skip string
267 if inputArgs["skip"] != nil {
268 err = json.Unmarshal([]byte(inputArgs["skip"]), &skip)
269 if err != nil {
270 panic(fmt.Errorf("%s: %w", "failed to unmarshal input arg skip", err))
271 }
272 }
273 var pkg string
274 if inputArgs["pkg"] != nil {
275 err = json.Unmarshal([]byte(inputArgs["pkg"]), &pkg)
276 if err != nil {
277 panic(fmt.Errorf("%s: %w", "failed to unmarshal input arg pkg", err))
278 }
279 }
280 var failfast bool
281 if inputArgs["failfast"] != nil {
282 err = json.Unmarshal([]byte(inputArgs["failfast"]), &failfast)
283 if err != nil {
284 panic(fmt.Errorf("%s: %w", "failed to unmarshal input arg failfast", err))
285 }
286 }
287 var timeout string
288 if inputArgs["timeout"] != nil {
289 err = json.Unmarshal([]byte(inputArgs["timeout"]), &timeout)
290 if err != nil {
291 panic(fmt.Errorf("%s: %w", "failed to unmarshal input arg timeout", err))
292 }
293 }
294 var race bool
295 if inputArgs["race"] != nil {
296 err = json.Unmarshal([]byte(inputArgs["race"]), &race)
297 if err != nil {
298 panic(fmt.Errorf("%s: %w", "failed to unmarshal input arg race", err))
299 }
300 }
301 var count int
302 if inputArgs["count"] != nil {
303 err = json.Unmarshal([]byte(inputArgs["count"]), &count)
304 if err != nil {
305 panic(fmt.Errorf("%s: %w", "failed to unmarshal input arg count", err))

Callers 1

dispatchFunction · 0.70

Calls 15

WithEBPFProgsMethod · 0.80
NewFunction · 0.70
UnmarshalMethod · 0.65
StartMethod · 0.65
BenchmarkMethod · 0.45
BenchmarkDumpMethod · 0.45
ConfigSchemaMethod · 0.45
ContainerMethod · 0.45
GenerateMethod · 0.45
GraphqlSchemaMethod · 0.45
IncrementSubnetMethod · 0.45
InstallClientMethod · 0.45

Tested by

no test coverage detected