mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-04-28 11:30:15 +00:00
10 lines
270 B
Go
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)
|
|
}
|
|
}
|