mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-11 14:00:29 +00:00
7147795e96
Test coverage for 9 pure functions in internal/api/diagnostics.go: - isFallbackMemorySource: 13 cases covering fallback and non-fallback sources - copyStringSlice: 4 cases including nil handling and copy verification - normalizeHostForComparison: 16 cases for URL normalization - normalizeVersionLabel: 11 cases for version prefix handling - contains: 8 cases for string slice membership - containsFold: 11 cases for case-insensitive matching - interfaceToStringSlice: 9 cases for type conversion - preferredDockerHostName: 5 cases for name preference hierarchy - formatTimeMaybe: 3 cases for time formatting
Internal API Package
This directory contains the API server implementation for Pulse.
Important Note About frontend-modern/
The frontend-modern/ subdirectory that appears here is:
- AUTO-GENERATED during builds
- NOT the source code - just a build artifact
- IN .gitignore - never committed
- REQUIRED BY GO - The embed directive needs it here
Frontend Development Location
👉 Edit frontend files at: /opt/pulse/frontend-modern/src/
Why This Structure?
Go's //go:embed directive has limitations:
- Cannot use
../paths to access parent directories - Cannot follow symbolic links
- Must embed files within the Go module
This is a known Go limitation and our structure works around it.