mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-21 02:33:32 +00:00
11 lines
270 B
Go
11 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)
|
|
}
|
|
}
|