- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for heyJoe (0.08 sec)
-
src/text/template/exec_test.go
got := err.Error() if got != want { t.Errorf("expected\n%q\ngot\n%q", want, got) } } type CustomError struct{} func (*CustomError) Error() string { return "heyo !" } // Check that a custom error can be returned. func TestExecError_CustomError(t *testing.T) { failingFunc := func() (string, error) { return "", &CustomError{} } tmpl := Must(New("top").Funcs(FuncMap{
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 22:23:55 UTC 2024 - 60.1K bytes - Viewed (0)