- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestErrorUsefulMessage (0.31 sec)
-
staging/src/k8s.io/apimachinery/pkg/util/validation/field/errors_test.go
}, } for _, testCase := range testCases { err := testCase.fn() if err.Type != testCase.expected { t.Errorf("expected Type %q, got %q", testCase.expected, err.Type) } } } func TestErrorUsefulMessage(t *testing.T) { { s := Invalid(nil, nil, "").Error() t.Logf("message: %v", s) if !strings.Contains(s, "null") { t.Errorf("error message did not contain 'null': %s", s) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Oct 28 07:31:28 UTC 2023 - 4.2K bytes - Viewed (0)