Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 223 for mapvar (0.14 sec)

  1. pkg/util/flag/flags.go

    var (
    	_ pflag.Value = &IPVar{}
    	_ pflag.Value = &IPPortVar{}
    	_ pflag.Value = &PortRangeVar{}
    	_ pflag.Value = &ReservedMemoryVar{}
    	_ pflag.Value = &RegisterWithTaintsVar{}
    )
    
    // IPVar is used for validating a command line option that represents an IP. It implements the pflag.Value interface
    type IPVar struct {
    	Val *string
    }
    
    // Set sets the flag value
    func (v *IPVar) Set(s string) error {
    	if len(s) == 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 19 03:30:46 UTC 2022
    - 7.8K bytes
    - Viewed (0)
  2. platforms/jvm/testing-jvm-infrastructure/src/test/groovy/org/gradle/api/internal/tasks/testing/failure/mappers/OpenTestAssertionFailedMapperTest.groovy

        def "can map null expected values"() {
            given:
            def mapper = new OpenTestAssertionFailedMapper()
            def error = new AssertionFailedError("message", suppliedExpected, suppliedActual)
    
            when:
            def failure = mapper.map(error, null)
    
            then:
            failure.details.expected == expectedExpected
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Feb 09 14:57:01 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  3. platforms/jvm/testing-jvm-infrastructure/src/main/java/org/gradle/api/internal/tasks/testing/failure/mappers/OpenTestMultipleFailuresErrorMapper.java

            List<TestFailure> failures = new ArrayList<TestFailure>();
    
            List<Throwable> innerExceptions = invokeMethod(throwable, "getFailures", List.class);
            for (Throwable innerException : innerExceptions) {
                failures.add(mapper.createFailure(innerException));
            }
    
            return failures;
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 26 14:58:23 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/transforms/optimize_functional_ops.cc

        // one blocks are not encountered in practice.
        if (!llvm::hasSingleElement(func)) return failure();
    
        IRMapping mapper;
        for (int i = 0, e = func.getNumArguments(); i != e; ++i)
          mapper.map(func.getArgument(i), op.getOperand(i + 1));
    
        llvm::SmallVector<Value, 4> updated_results;
        for (auto& op_to_inline : func.front()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/experimental/remat/rematerializer.h

      // index/memory usage pairs) for the current graph in operation order and
      // calls `mapper` on them. This is an optimization -- by instantiating with an
      // appropriate `Mapper`, it allows us to e.g. compute the peak memory without
      // having to instantiate an actual memory profile vector.
      template <class Mapper>
      void MapMem(const Mapper& mapper, const RematSpec& remat) const {
        const auto deltas = GetDeltas(remat);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 14 20:57:44 UTC 2023
    - 12K bytes
    - Viewed (0)
  6. platforms/core-configuration/configuration-problems-base/src/main/kotlin/org/gradle/internal/configuration/problems/DefaultProblemFactory.kt

                    exceptionMessage = builder(message.toString().capitalized())
                    return this
                }
    
                override fun mapLocation(mapper: (PropertyTrace) -> PropertyTrace): ProblemFactory.Builder {
                    locationMapper = mapper
                    return this
                }
    
                override fun documentationSection(documentationSection: DocumentationSection): ProblemFactory.Builder {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 27 12:59:39 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/cel/openapi/values_test.go

    			},
    		},
    	}
    
    	for _, tc := range cases {
    		t.Run(tc.name, func(t *testing.T) {
    			mapper := UnstructuredToVal(tc.unstructured, tc.schema).(traits.Mapper)
    			if mapper.Size().Value() != tc.size {
    				t.Errorf("Expected Size to return %d but got %d", tc.size, mapper.Size().Value())
    			}
    			iter := mapper.Iterator()
    			iterResults := map[interface{}]struct{}{}
    			keys := map[interface{}]struct{}{}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 23 22:30:17 UTC 2023
    - 17.7K bytes
    - Viewed (0)
  8. pkg/volume/testing/testing.go

    	expectedMapPodDeviceCallCount int,
    	fakeVolumePlugin *FakeVolumePlugin) error {
    	for _, mapper := range fakeVolumePlugin.GetBlockVolumeMapper() {
    		actualCallCount := mapper.GetMapPodDeviceCallCount()
    		if actualCallCount >= expectedMapPodDeviceCallCount {
    			return nil
    		}
    	}
    
    	return fmt.Errorf(
    		"No Mapper have expected MapPodDeviceCallCount. Expected: <%v>.",
    		expectedMapPodDeviceCallCount)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 12:32:15 UTC 2024
    - 53.3K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/generic/plugin.go

    	c.informerFactory = f
    }
    
    func (c *Plugin[H]) SetExternalKubeClientSet(client kubernetes.Interface) {
    	c.client = client
    }
    
    func (c *Plugin[H]) SetRESTMapper(mapper meta.RESTMapper) {
    	c.restMapper = mapper
    }
    
    func (c *Plugin[H]) SetDynamicClient(client dynamic.Interface) {
    	c.dynamicClient = client
    }
    
    func (c *Plugin[H]) SetDrainedNotification(stopCh <-chan struct{}) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 05 19:11:10 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  10. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/PasswordBasedExtractor.java

                    List<Pair<Pattern, String>> list = configPasswordMap.get(value);
                    if (list == null) {
                        try {
                            final ObjectMapper mapper = new ObjectMapper();
                            final Map<String, String> passwordMap = mapper.readValue(value, new TypeReference<Map<String, String>>() {
                            });
    Registered: Wed Jun 12 15:17:51 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 3.7K bytes
    - Viewed (0)
Back to top