Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 223 for mapvar (0.14 sec)

  1. src/cmd/compile/internal/ssa/xposmap.go

    func (m *xposmap) clear() {
    	for _, l := range m.maps {
    		if l != nil {
    			l.clear()
    		}
    	}
    	m.lastIndex = -1
    	m.lastMap = nil
    }
    
    // mapFor returns the line range map for a given file index.
    func (m *xposmap) mapFor(index int32) *biasedSparseMap {
    	if index == m.lastIndex {
    		return m.lastMap
    	}
    	mf := m.maps[index]
    	m.lastIndex = index
    	m.lastMap = mf
    	return mf
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 18:48:16 UTC 2019
    - 3.3K bytes
    - Viewed (0)
  2. platforms/ide/tooling-api/src/test/groovy/org/gradle/tooling/internal/adapter/CollectionMapperTest.groovy

    import org.gradle.tooling.model.DomainObjectSet
    import spock.lang.Specification
    
    class CollectionMapperTest extends Specification {
        final def mapper = new CollectionMapper()
    
        def "maps collection types"() {
            expect:
            def collection = mapper.createEmptyCollection(sourceType)
            collection.class == collectionType
    
            where:
            sourceType      | collectionType
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:20 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  3. platforms/jvm/testing-jvm-infrastructure/src/test/groovy/org/gradle/api/internal/tasks/testing/failure/mappers/JUnitComparisonTestFailureMapperTest.groovy

            given:
            def comparisonFailure = new CustomComparisonFailure("message", "expected", "actual")
            def mapper = new JUnitComparisonTestFailureMapper()
    
            when:
            def supports = mapper.supports(comparisonFailure.class)
            then:
            supports
    
            when:
            def failure = mapper.map(comparisonFailure, null)
            then:
            failure.details.expected == "expected"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  4. pkg/volume/csi/csi_block_test.go

    	mapper, err := plug.NewBlockVolumeMapper(
    		spec,
    		&api.Pod{ObjectMeta: metav1.ObjectMeta{UID: testPodUID, Namespace: testns, Name: testPod}},
    		volume.VolumeOptions{},
    	)
    	if err != nil {
    		return nil, nil, nil, fmt.Errorf("failed to make a new Mapper: %w", err)
    	}
    	csiMapper := mapper.(*csiBlockMapper)
    	return csiMapper, spec, pv, nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Sep 11 06:07:40 UTC 2023
    - 26.5K bytes
    - Viewed (0)
  5. src/runtime/os_illumos.go

    			// cap (deny) action.
    			v := rctlblk_get_value(unsafe.Pointer(rblk))
    			if capval == 0 || capval > v {
    				capval = v
    			}
    		}
    
    		// Swap the blocks around so that we can fetch the next value
    		t := rblk
    		rblk = rblkprev
    		rblkprev = t
    		flag = _RCTL_NEXT
    	}
    
    	return capval
    }
    
    func getncpu() int32 {
    	n := int32(sysconf(__SC_NPROCESSORS_ONLN))
    	if n < 1 {
    		return 1
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 28 18:06:12 UTC 2019
    - 3.9K bytes
    - Viewed (0)
  6. platforms/jvm/testing-jvm-infrastructure/src/test/groovy/org/gradle/api/internal/tasks/testing/failure/mappers/AssertjMultipleAssertionsErrorMapperTest.groovy

        // SUT
        def mapper = new AssertjMultipleAssertionsErrorMapper()
    
        // Our error being mapped
        def error = new MultipleAssertionsError(
            [
                new MockFailure(1),
                new MockFailure(2),
                new MockFailure(3)
            ]
        )
    
        // Simple root mapper that just wraps the assertion failure
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  7. staging/src/k8s.io/cli-runtime/pkg/resource/builder.go

    func (b *Builder) Local() *Builder {
    	b.local = true
    	return b
    }
    
    func (b *Builder) isLocal() bool {
    	return b.local
    }
    
    // Mapper returns a copy of the current mapper.
    func (b *Builder) Mapper() *mapper {
    	mapper := *b.mapper
    	return &mapper
    }
    
    // URL accepts a number of URLs directly.
    func (b *Builder) URL(httpAttemptCount int, urls ...*url.URL) *Builder {
    	for _, u := range urls {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 03 10:17:56 UTC 2023
    - 37.2K bytes
    - Viewed (0)
  8. platforms/jvm/testing-jvm-infrastructure/src/test/groovy/org/gradle/api/internal/tasks/testing/failure/mappers/OpenTestMultipleFailuresMapperTestError.groovy

        // SUT
        def mapper = new OpenTestMultipleFailuresErrorMapper()
    
        // Our error being mapped
        def error = new MultipleFailuresError(
            "Multiple Failures",
            [
                new MockFailure(1),
                new MockFailure(2),
                new MockFailure(3)
            ]
        )
    
        // Simple root mapper that just wraps the assertion failure
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/admission/initializer/initializer_test.go

    	if wantsRESTMapperAdmission.mapper == nil {
    		t.Errorf("Expected REST mapper to be initialized but found nil")
    	}
    }
    
    type WantsRESTMapperAdmissionPlugin struct {
    	doNothingAdmission
    	doNothingPluginInitialization
    	mapper meta.RESTMapper
    }
    
    func (p *WantsRESTMapperAdmissionPlugin) SetRESTMapper(mapper meta.RESTMapper) {
    	p.mapper = mapper
    }
    
    type doNothingRESTMapper struct{}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 00:00:21 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  10. test/typeparam/map.go

    // returning a new slice of the results.
    func mapper[F, T any](s []F, f func(F) T) []T {
    	r := make([]T, len(s))
    	for i, v := range s {
    		r[i] = f(v)
    	}
    	return r
    }
    
    func main() {
    	got := mapper([]int{1, 2, 3}, strconv.Itoa)
    	want := []string{"1", "2", "3"}
    	if !reflect.DeepEqual(got, want) {
    		panic(fmt.Sprintf("got %s, want %s", got, want))
    	}
    
    	fgot := mapper([]float64{2.5, 2.3, 3.5}, func(f float64) string {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 885 bytes
    - Viewed (0)
Back to top