MCPcopy Index your code
hub / github.com/keploy/keploy / FirstTestWindowStart

Method FirstTestWindowStart

pkg/agent/proxy/proxy.go:2751–2756  ·  view source on GitHub ↗

FirstTestWindowStart returns the earliest test window start observed by the underlying MockManager, or zero before any non-BaseTime SetMocksWithWindow has landed. Satisfies the agent's optional FirstWindowStartReader extension interface. Used by the agent's tier-aware strictMockWindow filter to pre

()

Source from the content-addressed store, hash-verified

2749// Zero-time return means "no cutoff known yet" and callers should fall
2750// back to legacy strict-gate semantics.
2751func (p *Proxy) FirstTestWindowStart() time.Time {
2752 if m := p.getMockManager(); m != nil {
2753 return m.FirstTestWindowStart()
2754 }
2755 return time.Time{}
2756}
2757
2758// GetConsumedMocks returns the consumed filtered mocks.
2759func (p *Proxy) GetConsumedMocks(_ context.Context) ([]models.MockState, error) {

Callers

nothing calls this directly

Implementers 1

Proxypkg/agent/proxy/proxy.go

Calls 2

getMockManagerMethod · 0.95
FirstTestWindowStartMethod · 0.65

Tested by

no test coverage detected