MCPcopy Create free account
hub / github.com/JordanCoin/codemap / Remove

Method Remove

watch/workingset.go:56–58  ·  view source on GitHub ↗

Remove removes a file from the working set (e.g., on REMOVE/RENAME).

(path string)

Source from the content-addressed store, hash-verified

54
55// Remove removes a file from the working set (e.g., on REMOVE/RENAME).
56func (ws *WorkingSet) Remove(path string) {
57 delete(ws.Files, path)
58}
59
60// ActiveFiles returns files edited since the given duration ago, sorted by last touch (newest first).
61func (ws *WorkingSet) ActiveFiles(since time.Duration) []WorkingFile {

Callers 8

TestWorkingSet_RemoveFunction · 0.95
captureMainOutputFunction · 0.80
captureMainStreamsFunction · 0.80
captureOutputFunction · 0.80
captureOutputAndErrorFunction · 0.80
TestFileRemovalFunction · 0.80
RemovePIDFunction · 0.80
handleEventMethod · 0.80

Calls

no outgoing calls

Tested by 6

TestWorkingSet_RemoveFunction · 0.76
captureMainOutputFunction · 0.64
captureMainStreamsFunction · 0.64
captureOutputFunction · 0.64
captureOutputAndErrorFunction · 0.64
TestFileRemovalFunction · 0.64