Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/betta-tech/byo-coding-agent
/ Clear
Function
Clear
internal/debug/debug.go:230–234 ·
view source on GitHub ↗
Clear empties the ring. Called from /debug clear.
()
Source
from the content-addressed store, hash-verified
228
229
// Clear empties the ring. Called from /debug clear.
230
func
Clear() {
231
mu.Lock()
232
events = events[:0]
233
mu.Unlock()
234
}
Callers
9
cmdDebug
Function · 0.92
TestRecordReturnsZeroWhenDisabled
Function · 0.92
TestRecordAssignsMonotonicIDs
Function · 0.92
TestSnapshotReturnsCopy
Function · 0.92
TestRingDropsOldestPastCapacity
Function · 0.92
TestPairWalksBothDirections
Function · 0.92
TestPairReturnsFalseForUnpairedEvent
Function · 0.92
TestSinkReceivesEventsInOrder
Function · 0.92
TestLatestSkipsPayloadlessEvents
Function · 0.92
Calls
no outgoing calls
Tested by
8
TestRecordReturnsZeroWhenDisabled
Function · 0.74
TestRecordAssignsMonotonicIDs
Function · 0.74
TestSnapshotReturnsCopy
Function · 0.74
TestRingDropsOldestPastCapacity
Function · 0.74
TestPairWalksBothDirections
Function · 0.74
TestPairReturnsFalseForUnpairedEvent
Function · 0.74
TestSinkReceivesEventsInOrder
Function · 0.74
TestLatestSkipsPayloadlessEvents
Function · 0.74