MCPcopy
hub / github.com/keploy/keploy / getApp

Method getApp

pkg/platform/http/agent.go:1302–1315  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1300}
1301
1302func (a *AgentClient) getApp() (*app.App, error) {
1303 ap, ok := a.apps.Load(uint64(0))
1304 if !ok {
1305 return nil, fmt.Errorf("app not found")
1306 }
1307
1308 // type assertion on the app
1309 h, ok := ap.(*app.App)
1310 if !ok {
1311 return nil, fmt.Errorf("failed to type assert app")
1312 }
1313
1314 return h, nil
1315}
1316
1317// ComposeDownOnSetupFailure tears down the managed docker-compose stack so a
1318// retry after a per-test-set setup failure (e.g. agent-readiness timeout) does

Callers 3

RunMethod · 0.95
GetRecentAppLogsMethod · 0.95

Calls 1

LoadMethod · 0.65

Tested by

no test coverage detected