Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for TestMapping (0.17 sec)

  1. guava-tests/test/com/google/common/escape/ArrayBasedEscaperMapTest.java

        ArrayBasedEscaperMap fem = ArrayBasedEscaperMap.create(map);
        // Array length is highest character value + 1
        assertEquals('z' + 1, fem.getReplacementArray().length);
      }
    
      public void testMapping() {
        Map<Character, String> map =
            ImmutableMap.of(
                '\0', "zero",
                'a', "first",
                'b', "second",
                'z', "last",
                '\uFFFF', "biggest");
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Oct 10 19:45:10 UTC 2022
    - 2.5K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/escape/ArrayBasedEscaperMapTest.java

        ArrayBasedEscaperMap fem = ArrayBasedEscaperMap.create(map);
        // Array length is highest character value + 1
        assertEquals('z' + 1, fem.getReplacementArray().length);
      }
    
      public void testMapping() {
        Map<Character, String> map =
            ImmutableMap.of(
                '\0', "zero",
                'a', "first",
                'b', "second",
                'z', "last",
                '\uFFFF', "biggest");
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Oct 10 19:45:10 UTC 2022
    - 2.5K bytes
    - Viewed (0)
  3. src/net/http/mapping_test.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package http
    
    import (
    	"cmp"
    	"fmt"
    	"slices"
    	"strconv"
    	"testing"
    )
    
    func TestMapping(t *testing.T) {
    	var m mapping[int, string]
    	for i := 0; i < maxSlice; i++ {
    		m.add(i, strconv.Itoa(i))
    	}
    	if m.m != nil {
    		t.Fatal("m.m != nil")
    	}
    	for i := 0; i < maxSlice; i++ {
    		g, _ := m.find(i)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 12 17:47:07 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  4. src/runtime/pprof/proto_test.go

    			}
    		}
    	}
    
    	t.Run("Normal", func(t *testing.T) {
    		f(t, profSelfMapsTests)
    	})
    
    	t.Run("WithDeletedFile", func(t *testing.T) {
    		f(t, profSelfMapsTestsWithDeleted)
    	})
    }
    
    // TestMapping checks the mapping section of CPU profiles
    // has the HasFunctions field set correctly. If all PCs included
    // in the samples are successfully symbolized, the corresponding
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 31 23:21:53 UTC 2024
    - 17K bytes
    - Viewed (0)
  5. istioctl/pkg/cli/kubectl_factory.go

    }
    
    func (f Factory) NewBuilder() *resource.Builder {
    	return f.full.NewBuilder()
    }
    
    func (f Factory) ClientForMapping(mapping *meta.RESTMapping) (resource.RESTClient, error) {
    	return f.full.ClientForMapping(mapping)
    }
    
    func (f Factory) UnstructuredClientForMapping(mapping *meta.RESTMapping) (resource.RESTClient, error) {
    	return f.full.UnstructuredClientForMapping(mapping)
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 09 18:17:49 UTC 2023
    - 2K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/admission/initializer/initializer_test.go

    	return nil, nil
    }
    func (doNothingRESTMapper) RESTMapping(gk schema.GroupKind, versions ...string) (*meta.RESTMapping, error) {
    	return nil, nil
    }
    func (doNothingRESTMapper) RESTMappings(gk schema.GroupKind, versions ...string) ([]*meta.RESTMapping, error) {
    	return nil, nil
    }
    func (doNothingRESTMapper) ResourceSingularizer(resource string) (singular string, err error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 00:00:21 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  7. staging/src/k8s.io/cli-runtime/pkg/resource/mapper.go

    		ResourceVersion: resourceVersion,
    
    		Object: obj,
    	}
    
    	if m.localFn == nil || !m.localFn() {
    		restMapper, err := m.restMapperFn()
    		if err != nil {
    			return nil, err
    		}
    		mapping, err := restMapper.RESTMapping(gvk.GroupKind(), gvk.Version)
    		if err != nil {
    			if _, ok := err.(*meta.NoKindMatchError); ok {
    				return nil, fmt.Errorf("resource mapping not found for name: %q namespace: %q from %q: %w\nensure CRDs are installed first",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jan 03 10:53:18 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  8. staging/src/k8s.io/cli-runtime/pkg/resource/builder.go

    	return b
    }
    
    // mappingFor returns the RESTMapping for the Kind given, or the Kind referenced by the resource.
    // Prefers a fully specified GroupVersionResource match. If one is not found, we match on a fully
    // specified GroupVersionKind, or fallback to a match on GroupKind.
    func (b *Builder) mappingFor(resourceOrKindArg string) (*meta.RESTMapping, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 03 10:17:56 UTC 2023
    - 37.2K bytes
    - Viewed (0)
  9. pkg/controller/garbagecollector/operations.go

    func (gc *GarbageCollector) apiResource(apiVersion, kind string) (schema.GroupVersionResource, bool, error) {
    	fqKind := schema.FromAPIVersionAndKind(apiVersion, kind)
    	mapping, err := gc.restMapper.RESTMapping(fqKind.GroupKind(), fqKind.Version)
    	if err != nil {
    		return schema.GroupVersionResource{}, false, newRESTMappingError(kind, apiVersion)
    	}
    	return mapping.Resource, mapping.Scope == meta.RESTScopeNamespace, nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 08 13:37:56 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  10. plugin/pkg/admission/gc/gc_admission_test.go

    	panic("test failed")
    }
    func (r *neverReturningRESTMapper) RESTMapping(gk schema.GroupKind, versions ...string) (*meta.RESTMapping, error) {
    	// this ok because if the test works, this method should never be called.
    	panic("test failed")
    }
    func (r *neverReturningRESTMapper) RESTMappings(gk schema.GroupKind, versions ...string) ([]*meta.RESTMapping, error) {
    	// this ok because if the test works, this method should never be called.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 21:28:42 UTC 2024
    - 24.5K bytes
    - Viewed (0)
Back to top