Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 217 for elem4 (0.05 sec)

  1. src/cmd/compile/internal/walk/select.go

    			init = append(init, typecheck.Stmt(r))
    		}
    
    		c = typecheck.ConvNop(c, types.Types[types.TUNSAFEPTR])
    		setField("c", c)
    		if !ir.IsBlank(elem) {
    			elem = typecheck.ConvNop(elem, types.Types[types.TUNSAFEPTR])
    			setField("elem", elem)
    		}
    
    		// TODO(mdempsky): There should be a cleaner way to
    		// handle this.
    		if base.Flag.Race {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 01:53:41 UTC 2023
    - 7.8K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/api/apitesting/roundtrip/construct.go

    		// construct a zero-value item
    		item := reflect.New(t.Elem())
    		// recurse to populate the item, preserving the data context
    		fill(dataString, dataInt, t.Elem(), item.Elem(), fillFuncs, filledTypes)
    		// store in the map
    		v.Set(reflect.MakeMap(t))
    		v.SetMapIndex(key, item.Elem())
    
    	case reflect.Struct:
    		for i := 0; i < t.NumField(); i++ {
    			field := t.Field(i)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 27 19:12:59 UTC 2023
    - 6.5K bytes
    - Viewed (0)
  3. platforms/software/testing-base/src/test/groovy/org/gradle/api/internal/tasks/testing/logging/StackTraceFilterTest.groovy

            spec.isSatisfiedBy(_) >> { StackTraceElement elem -> elem.methodName.size() > 10 }
    
            when:
            def filtered = filter.filter(trace)
    
            then:
            filtered.size() > 0
            filtered.size() < trace.size()
            filtered == trace.findAll { StackTraceElement elem -> elem.methodName.size() > 10 }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 2K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apimachinery/pkg/api/apitesting/fuzzer/valuefuzz.go

    				// map values are not addressable. We need a copy.
    				v := obj.MapIndex(k)
    				copy := reflect.New(v.Type())
    				copy.Elem().Set(v)
    				valueFuzz(copy.Elem())
    				obj.SetMapIndex(k, copy.Elem())
    			}
    			// TODO: set some new value
    		}
    	case reflect.Func: // ignore, we don't have function types in our API
    	default:
    		if !obj.CanSet() {
    			return
    		}
    		switch obj.Kind() {
    		case reflect.String:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jun 25 16:23:43 UTC 2022
    - 2.3K bytes
    - Viewed (0)
  5. src/reflect/set_test.go

    type notASTExpr interface {
    	Pos() token.Pos
    	End() token.Pos
    	exprNode()
    }
    
    func TestImplements(t *testing.T) {
    	for _, tt := range implementsTests {
    		xv := TypeOf(tt.x).Elem()
    		xt := TypeOf(tt.t).Elem()
    		if b := xv.Implements(xt); b != tt.b {
    			t.Errorf("(%s).Implements(%s) = %v, want %v", xv.String(), xt.String(), b, tt.b)
    		}
    	}
    }
    
    var assignableTests = []struct {
    	x any
    	t any
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 07 13:56:11 UTC 2022
    - 5.7K bytes
    - Viewed (0)
  6. test/fixedbugs/issue35073a.go

    package main
    
    import (
    	"reflect"
    	"unsafe"
    )
    
    func main() {
    	n := 10
    	m := make(map[string]string)
    
    	_ = unsafe.Pointer(reflect.ValueOf(&n).Elem().UnsafeAddr())
    	_ = unsafe.Pointer(reflect.ValueOf(&m).Elem().Pointer())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 20 15:12:49 UTC 2023
    - 497 bytes
    - Viewed (0)
  7. src/runtime/checkptr.go

    import "unsafe"
    
    func checkptrAlignment(p unsafe.Pointer, elem *_type, n uintptr) {
    	// nil pointer is always suitably aligned (#47430).
    	if p == nil {
    		return
    	}
    
    	// Check that (*[n]elem)(p) is appropriately aligned.
    	// Note that we allow unaligned pointers if the types they point to contain
    	// no pointers themselves. See issue 37298.
    	// TODO(mdempsky): What about fieldAlign?
    	if elem.Pointers() && uintptr(p)&(uintptr(elem.Align_)-1) != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:18:55 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  8. src/path/filepath/path_plan9.go

    	return strings.Split(path, string(ListSeparator))
    }
    
    func abs(path string) (string, error) {
    	return unixAbs(path)
    }
    
    func join(elem []string) string {
    	// If there's a bug here, fix the logic in ./path_unix.go too.
    	for i, e := range elem {
    		if e != "" {
    			return Clean(strings.Join(elem[i:], string(Separator)))
    		}
    	}
    	return ""
    }
    
    func sameWord(a, b string) bool {
    	return a == b
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 23:07:50 UTC 2024
    - 926 bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/buildtag/buildtag_old.go

    }
    
    func checkArguments(fields []string) error {
    	for _, arg := range fields[1:] {
    		for _, elem := range strings.Split(arg, ",") {
    			if strings.HasPrefix(elem, "!!") {
    				return fmt.Errorf("invalid double negative in build constraint: %s", arg)
    			}
    			elem = strings.TrimPrefix(elem, "!")
    			for _, c := range elem {
    				if !unicode.IsLetter(c) && !unicode.IsDigit(c) && c != '_' && c != '.' {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  10. src/reflect/benchmark_test.go

    	SliceAny     Value
    	MapStringAny Value
    }{
    	Bool:         ValueOf(new(bool)).Elem(),
    	String:       ValueOf(new(string)).Elem(),
    	Bytes:        ValueOf(new([]byte)).Elem(),
    	NamedBytes:   ValueOf(new(namedBytes)).Elem(),
    	BytesArray:   ValueOf(new([32]byte)).Elem(),
    	SliceAny:     ValueOf(new([]any)).Elem(),
    	MapStringAny: ValueOf(new(map[string]any)).Elem(),
    }
    
    var sinkAll struct {
    	RawBool   bool
    	RawString string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Nov 19 17:09:03 UTC 2023
    - 8.8K bytes
    - Viewed (0)
Back to top