MCPcopy Index your code
hub / github.com/coder/coder / containsWorkspaceAgentStat

Function containsWorkspaceAgentStat

coderd/database/dbpurge/dbpurge_test.go:500–504  ·  view source on GitHub ↗
(stats []database.GetWorkspaceAgentStatsRow, needle database.WorkspaceAgentStat)

Source from the content-addressed store, hash-verified

498}
499
500func containsWorkspaceAgentStat(stats []database.GetWorkspaceAgentStatsRow, needle database.WorkspaceAgentStat) bool {
501 return slices.ContainsFunc(stats, func(s database.GetWorkspaceAgentStatsRow) bool {
502 return s.WorkspaceRxBytes == needle.RxBytes
503 })
504}
505
506//nolint:paralleltest // It uses LockIDDBPurge.
507func TestDeleteOldWorkspaceAgentLogs(t *testing.T) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected