Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestAggregateWithErrorsIs (0.18 sec)

  1. staging/src/k8s.io/apimachinery/pkg/util/errors/errors_test.go

    	return true
    }
    
    type someError struct{ msg string }
    
    func (se someError) Error() string {
    	if se.msg != "" {
    		return se.msg
    	}
    	return "err"
    }
    
    func TestAggregateWithErrorsIs(t *testing.T) {
    	testCases := []struct {
    		name         string
    		err          error
    		matchAgainst error
    		expectMatch  bool
    	}{
    		{
    			name:         "no match",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Jul 24 13:16:21 UTC 2022
    - 12.7K bytes
    - Viewed (0)
Back to top