MCPcopy Create free account
hub / github.com/conforma/cli / filterBundles

Method filterBundles

internal/tracker/tracker.go:251–256  ·  view source on GitHub ↗

filterBundles applies filterRecords to TaskBundles.

(prune bool)

Source from the content-addressed store, hash-verified

249
250// filterBundles applies filterRecords to TaskBundles.
251func (t *Tracker) filterBundles(prune bool) {
252 for group, records := range t.TrustedTasks {
253 log.Debugf("Filtering task records for %q", group)
254 t.TrustedTasks[group] = filterRecords(records, prune)
255 }
256}
257
258// filterRecords reduces the list of records by removing superfluous entries.
259// It removes records that have the same reference in a certain group. If prune is

Callers 1

TrackFunction · 0.80

Calls 1

filterRecordsFunction · 0.85

Tested by

no test coverage detected