Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 32 of 32 for unwrapped (0.19 sec)

  1. src/net/http/serve_test.go

    		case "hijack":
    			c, _, err := w.(Hijacker).Hijack()
    			if err != nil {
    				t.Errorf("Hijack in Handler: %v", err)
    				return
    			}
    			if _, ok := c.(*net.TCPConn); !ok {
    				// Verify it's not wrapped in some type.
    				// Not strictly a go1 compat issue, but in practice it probably is.
    				t.Errorf("type of hijacked conn is %T; want *net.TCPConn", c)
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 202K bytes
    - Viewed (0)
  2. src/reflect/all_test.go

    	return 0, nil
    }
    func (w *WC) Close() error {
    	return nil
    }
    
    func TestMakeFuncValidReturnAssignments(t *testing.T) {
    	// reflect.Values returned from the wrapped function should be assignment-converted
    	// to the types returned by the result of MakeFunc.
    
    	// Concrete types should be promotable to interfaces they implement.
    	var f func() error
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 218.8K bytes
    - Viewed (0)
Back to top