mirror of
https://github.com/lukaszraczylo/gohoarder.git
synced 2026-12-06 07:34:00 +00:00
test(scanner): drop the unused resultStore.saved helper
staticcheck U1000: the tests read store.savedResults directly, so the helper has no callers.
This commit is contained in:
@@ -364,12 +364,6 @@ func (m *resultStore) GetScanResult(context.Context, string, string, string) (*m
|
||||
return m.scan, nil
|
||||
}
|
||||
|
||||
func (m *resultStore) saved() []*metadata.ScanResult {
|
||||
m.mu.Lock()
|
||||
defer m.mu.Unlock()
|
||||
return append([]*metadata.ScanResult(nil), m.savedResults...)
|
||||
}
|
||||
|
||||
func TestScanPackage_InfrastructureErrorIsMarked(t *testing.T) {
|
||||
store := &stubMetadataStore{}
|
||||
mgr := newTestManager(t, store)
|
||||
|
||||
Reference in New Issue
Block a user