Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestAsValidation (0.15 sec)

  1. src/errors/wrap_test.go

    			}
    			if !match {
    				return
    			}
    			if got := rtarget.Elem().Interface(); got != tc.want {
    				t.Fatalf("got %#v, want %#v", got, tc.want)
    			}
    		})
    	}
    }
    
    func TestAsValidation(t *testing.T) {
    	var s string
    	testCases := []any{
    		nil,
    		(*int)(nil),
    		"error",
    		&s,
    	}
    	err := errors.New("error")
    	for _, tc := range testCases {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 22:49:49 UTC 2024
    - 6K bytes
    - Viewed (0)
Back to top