Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 48 of 48 for newBar (0.13 sec)

  1. pkg/scheduler/profile/profile_test.go

    		},
    	}
    	for _, tc := range cases {
    		t.Run(tc.name, func(t *testing.T) {
    			_, ctx := ktesting.NewTestContext(t)
    			ctx, cancel := context.WithCancel(ctx)
    			defer cancel()
    			m, err := NewMap(ctx, tc.cfgs, fakeRegistry, nilRecorderFactory)
    			if err := checkErr(err, tc.wantErr); err != nil {
    				t.Fatal(err)
    			}
    			if len(tc.wantErr) != 0 {
    				return
    			}
    			if len(m) != len(tc.cfgs) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 20 09:49:54 UTC 2023
    - 6.6K bytes
    - Viewed (0)
  2. platforms/core-configuration/kotlin-dsl/src/integTest/kotlin/org/gradle/kotlin/dsl/support/ClassBytesRepositoryTest.kt

                Wrapper::class.java,
                Wrapper.DistributionType::class.java,
                SomeKotlin::class.java,
                SomeKotlin.NestedType::class.java
            )
    
            val cpDir = newDir("cp-dir")
            unzipTo(cpDir, jar2)
    
            ClassBytesRepository(
                platformClassLoader = ClassLoaderUtils.getPlatformClassLoader(),
                classPathFiles = listOf(jar1, cpDir)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 01 17:45:10 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/cel/mutation/common/val.go

    func (v *ObjectVal) ConvertToType(typeValue ref.Type) ref.Val {
    	switch typeValue {
    	case v.typeRef:
    		return v
    	case types.TypeType:
    		return v.typeRef.CELType()
    	}
    	return types.NewErr("unsupported conversion into %v", typeValue)
    }
    
    // Equal returns true if the `other` value has the same type and content as the implementing struct.
    func (v *ObjectVal) Equal(other ref.Val) ref.Val {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 27 21:55:08 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/telemetry/internal/upload/run.go

    // Uploaders should only be used for one call to [uploader.Run].
    func newUploader(rcfg RunConfig) (*uploader, error) {
    	// Determine the upload directory.
    	var dir telemetry.Dir
    	if rcfg.TelemetryDir != "" {
    		dir = telemetry.NewDir(rcfg.TelemetryDir)
    	} else {
    		dir = telemetry.Default
    	}
    
    	// Determine the upload URL.
    	uploadURL := rcfg.UploadURL
    	if uploadURL == "" {
    		uploadURL = "https://telemetry.go.dev/upload"
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 21:12:15 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/typecheck/mkbuiltin.go

    			log.Fatal("non-empty interfaces unsupported")
    		}
    		return "types.Types[types.TINTER]"
    	case *ast.MapType:
    		return fmt.Sprintf("types.NewMap(%s, %s)", i.subtype(t.Key), i.subtype(t.Value))
    	case *ast.StarExpr:
    		return fmt.Sprintf("types.NewPtr(%s)", i.subtype(t.X))
    	case *ast.StructType:
    		return fmt.Sprintf("types.NewStruct(%s)", i.fields(t.Fields, true))
    
    	default:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 26 21:56:49 UTC 2023
    - 6K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/cel/library/cidr.go

    }
    
    func stringToCIDR(arg ref.Val) ref.Val {
    	s, ok := arg.Value().(string)
    	if !ok {
    		return types.MaybeNoSuchOverloadErr(arg)
    	}
    
    	net, err := parseCIDR(s)
    	if err != nil {
    		return types.NewErr("network address parse error during conversion from string: %v", err)
    	}
    
    	return apiservercel.CIDR{
    		Prefix: net,
    	}
    }
    
    func cidrToString(arg ref.Val) ref.Val {
    	cidr, ok := arg.(apiservercel.CIDR)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 12:03:04 UTC 2023
    - 8.9K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/cel/library/lists.go

    			if result == nil {
    				result = nextCmp
    			} else {
    				cmp := result.Compare(next)
    				if cmp == opPreferCmpResult {
    					result = nextCmp
    				}
    			}
    		}
    		if result == nil {
    			return types.NewErr("%s called on empty list", opName)
    		}
    		return result.(ref.Val)
    	}
    }
    
    func indexOf(list ref.Val, item ref.Val) ref.Val {
    	lister, ok := list.(traits.Lister)
    	if !ok {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Aug 23 21:31:27 UTC 2023
    - 9.2K bytes
    - Viewed (0)
  8. src/expvar/expvar.go

    func NewInt(name string) *Int {
    	v := new(Int)
    	Publish(name, v)
    	return v
    }
    
    func NewFloat(name string) *Float {
    	v := new(Float)
    	Publish(name, v)
    	return v
    }
    
    func NewMap(name string) *Map {
    	v := new(Map).Init()
    	Publish(name, v)
    	return v
    }
    
    func NewString(name string) *String {
    	v := new(String)
    	Publish(name, v)
    	return v
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 21:32:11 UTC 2024
    - 9.1K bytes
    - Viewed (0)
Back to top