Pulse/internal/models/profile_validation_additional_test.go
2026-01-25 21:08:44 +00:00

10 lines
270 B
Go

package models
import "testing"
func TestValidationErrorError(t *testing.T) {
err := ValidationError{Key: "cpu_threshold", Message: "invalid"}
if got := err.Error(); got != "cpu_threshold: invalid" {
t.Fatalf("Error() = %q, want cpu_threshold: invalid", got)
}
}