MCPcopy
hub / github.com/henrygd/beszel / RemoveAllSystems

Method RemoveAllSystems

internal/hub/systems/systems_test_helpers.go:113–118  ·  view source on GitHub ↗

TESTING ONLY: RemoveAllSystems removes all systems from the store

()

Source from the content-addressed store, hash-verified

111
112// TESTING ONLY: RemoveAllSystems removes all systems from the store
113func (sm *SystemManager) RemoveAllSystems() {
114 for _, system := range sm.systems.GetAll() {
115 sm.RemoveSystem(system.Id)
116 }
117 sm.smartFetchMap.StopCleaner()
118}
119
120func (s *System) StopUpdater() {
121 s.cancel()

Callers 2

cleanupTestHubFunction · 0.80
CleanupMethod · 0.80

Calls 2

RemoveSystemMethod · 0.95
StopCleanerMethod · 0.80

Tested by 1

cleanupTestHubFunction · 0.64