MCPcopy
hub / github.com/keploy/keploy / tcAt

Function tcAt

pkg/service/replay/startupmock_test.go:11–16  ·  view source on GitHub ↗

tcAt builds a minimal HTTP test case whose request timestamp is `t`.

(t time.Time)

Source from the content-addressed store, hash-verified

9
10// tcAt builds a minimal HTTP test case whose request timestamp is `t`.
11func tcAt(t time.Time) *models.TestCase {
12 return &models.TestCase{
13 Kind: models.HTTP,
14 HTTPReq: models.HTTPReq{Timestamp: t},
15 }
16}
17
18// TestStartupMockCutoff pins the startup-mock exemption boundary used by
19// RemoveUnusedMocks: it must be the (models.StartupMockTestCaseWindow+1)-th test case

Callers 1

TestStartupMockCutoffFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected