Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 987 for typeOf (0.16 sec)

  1. pkg/printers/tablegenerator.go

    	}
    	funcType := printFunc.Type()
    	if funcType.NumIn() != 2 || funcType.NumOut() != 2 {
    		return fmt.Errorf("invalid print handler." +
    			"Must accept 2 parameters and return 2 value")
    	}
    	if funcType.In(1) != reflect.TypeOf((*GenerateOptions)(nil)).Elem() ||
    		funcType.Out(0) != reflect.TypeOf((*[]metav1.TableRow)(nil)).Elem() ||
    		funcType.Out(1) != reflect.TypeOf((*error)(nil)).Elem() {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 26 17:14:05 UTC 2022
    - 5.9K bytes
    - Viewed (0)
  2. src/internal/types/testdata/fixedbugs/issue53650.go

    import (
    	"reflect"
    	"testing"
    )
    
    type T1 int
    type T2 int
    
    func f[P T1 | T2, _ []P]() {}
    
    var _ = f[T1]
    
    // test case from issue
    
    type BaseT interface {
    	Type1 | Type2
    }
    type BaseType int
    type Type1 BaseType
    type Type2 BaseType // float64
    
    type ValueT[T BaseT] struct {
    	A1 T
    }
    
    func NewType1() *ValueT[Type1] {
    	r := NewT[Type1]()
    	return r
    }
    func NewType2() *ValueT[Type2] {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:54:58 UTC 2023
    - 877 bytes
    - Viewed (0)
  3. staging/src/k8s.io/apimachinery/pkg/api/meta/help.go

    		if err != nil {
    			return err
    		}
    		if src.Type().AssignableTo(dest.Type()) {
    			dest.Set(src)
    		} else if src.Type().ConvertibleTo(dest.Type()) {
    			dest.Set(src.Convert(dest.Type()))
    		} else {
    			return fmt.Errorf("item[%d]: can't assign or convert %v into %v", i, src.Type(), dest.Type())
    		}
    	}
    	items.Set(slice)
    	return nil
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 29 16:25:43 UTC 2023
    - 9.8K bytes
    - Viewed (0)
  4. test/fixedbugs/issue25897a.go

    		// affects whether the compiler needs to generate a
    		// wrapper closure for the "go" statement.
    		f := reflect.MakeFunc(reflect.TypeOf(((func(*int))(nil))),
    			func(args []reflect.Value) []reflect.Value {
    				c <- true
    				return nil
    			}).Interface().(func(*int))
    		go f(nil)
    
    		g := reflect.MakeFunc(reflect.TypeOf(((func())(nil))),
    			func(args []reflect.Value) []reflect.Value {
    				c <- true
    				return nil
    			}).Interface().(func())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 02 19:04:48 UTC 2022
    - 1.1K bytes
    - Viewed (0)
  5. src/main/webapp/js/admin/plugins/form-validator/poland.js

     *
     *  @version 2.3.77
     *  @website http://formvalidator.net/
     *  @author Victor Jonsson, http://victorjonsson.se
     *  @license MIT
     */
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Mon Jan 01 05:12:47 UTC 2018
    - 1.4K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiextensions-apiserver/pkg/apis/roundtrip_test.go

    	}
    
    	opts := roundtrip.NewCompatibilityTestOptions(scheme)
    
    	// Fill unstructured JSON field types
    	opts.FillFuncs = map[reflect.Type]roundtrip.FillFunc{
    		reflect.TypeOf(&apiextensionv1.JSON{}): func(s string, i int, obj interface{}) {
    			obj.(*apiextensionv1.JSON).Raw = []byte(strconv.Quote(s + "Value"))
    		},
    		reflect.TypeOf(&apiextensionv1beta1.JSON{}): func(s string, i int, obj interface{}) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 27 19:12:59 UTC 2023
    - 2K bytes
    - Viewed (0)
  7. staging/src/k8s.io/api/core/v1/types_test.go

    		}
    	}
    }
    
    // TestEphemeralContainer ensures that the tags of Container and EphemeralContainerCommon are kept in sync.
    func TestEphemeralContainer(t *testing.T) {
    	ephemeralType := reflect.TypeOf(EphemeralContainerCommon{})
    	containerType := reflect.TypeOf(Container{})
    
    	ephemeralFields := ephemeralType.NumField()
    	containerFields := containerType.NumField()
    	if containerFields != ephemeralFields {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Oct 20 03:01:07 UTC 2021
    - 2.1K bytes
    - Viewed (0)
  8. pkg/volume/csi/csi_block_test.go

    	_, err = csiMapper.SetUpDevice()
    	if err == nil {
    		t.Errorf("test should fail, but no error occurred")
    	} else if reflect.TypeOf(transientError) != reflect.TypeOf(err) {
    		t.Fatalf("expected exitError type: %v got: %v (%v)", reflect.TypeOf(transientError), reflect.TypeOf(err), err)
    	}
    }
    
    func TestBlockMapperMapPodDevice(t *testing.T) {
    	plug, tmpDir := newTestPlugin(t, nil)
    	defer os.RemoveAll(tmpDir)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Sep 11 06:07:40 UTC 2023
    - 26.5K bytes
    - Viewed (0)
  9. src/main/webapp/js/admin/plugins/form-validator/lang/fa.js

     *
     *  @version 2.3.77
     *  @website http://formvalidator.net/
     *  @author Victor Jonsson, http://victorjonsson.se
     *  @license MIT
     */
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Mon Jan 01 05:12:47 UTC 2018
    - 2.9K bytes
    - Viewed (0)
  10. src/main/webapp/js/admin/plugins/form-validator/lang/ro.js

     *
     *  @version 2.3.77
     *  @website http://formvalidator.net/
     *  @author Victor Jonsson, http://victorjonsson.se
     *  @license MIT
     */
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Mon Jan 01 05:12:47 UTC 2018
    - 2.5K bytes
    - Viewed (0)
Back to top