terraform/vendor/github.com/digitalocean/godo/errors_test.go

12 lines
255 B
Go

package godo
import "testing"
func TestArgError(t *testing.T) {
expected := "foo is invalid because bar"
err := NewArgError("foo", "bar")
if got := err.Error(); got != expected {
t.Errorf("ArgError().Error() = %q; expected %q", got, expected)
}
}