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.

Remove uncalled test helpers

rcourtman51155a42c900
diff --git a/internal/ai/service_test.go b/internal/ai/service_test.go
index ac044c2332..22d6c8de6f 100644
--- a/internal/ai/service_test.go
+++ b/internal/ai/service_test.go
@@ -1195,10 +1195,6 @@ func TestService_ExecuteTool(t *testing.T) {
}
// Helper functions (restored)
-func hasPrefix(s, prefix string) bool {
- return strings.HasPrefix(s, prefix)
-}
-
func containsString(s, substr string) bool {
return strings.Contains(s, substr)
}
diff --git a/internal/api/agent_resource_context_test.go b/internal/api/agent_resource_context_test.go
index 0de49460f0..02d08b1b36 100644
--- a/internal/api/agent_resource_context_test.go
+++ b/internal/api/agent_resource_context_test.go
@@ -68,15 +68,6 @@ func (s staticAIUsageProvider) AIUsageHistory(_ context.Context) (*config.AIUsag
return s.history, s.err
}
-type staticExternalAgentActivityProvider struct {
- history *config.ExternalAgentActivityHistoryData
- err error
-}
-
-func (s staticExternalAgentActivityProvider) ExternalAgentActivityHistory(_ context.Context) (*config.ExternalAgentActivityHistoryData, error) {
- return s.history, s.err
-}
-
func (s staticApprovalsProvider) PendingApprovalsForResource(resourceID, _ string) []AgentResourceApprovalSummary {
if s.byResource == nil {
return nil