Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 223 for mapvar (0.13 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. 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)
  4. 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)
  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. 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)
  9. 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)
  10. src/net/http/triv.go

    // license that can be found in the LICENSE file.
    
    //go:build ignore
    
    package main
    
    import (
    	"expvar"
    	"flag"
    	"fmt"
    	"io"
    	"log"
    	"net/http"
    	"os"
    	"os/exec"
    	"strconv"
    	"strings"
    	"sync"
    )
    
    // hello world, the web server
    var helloRequests = expvar.NewInt("hello-requests")
    
    func HelloServer(w http.ResponseWriter, req *http.Request) {
    	helloRequests.Add(1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 3.2K bytes
    - Viewed (0)
Back to top