Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

327 B
Raw Blame
package mock

import "testing"

// mustSetEnabled toggles the package mock-mode state and fails the test on
// error so callers don't repeat the check at every toggle.
func mustSetEnabled(t testing.TB, enabled bool) {
	t.Helper()
	if err := SetEnabled(enabled); err != nil {
		t.Fatalf("SetEnabled(%v): %v", enabled, err)
	}
}