Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 35 for TestMapping (0.32 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. staging/src/k8s.io/apimachinery/pkg/api/meta/priority_test.go

    		fixedRESTMapper{mappings: []*RESTMapping{mapping1}},
    		fixedRESTMapper{mappings: []*RESTMapping{mapping2}},
    		fixedRESTMapper{mappings: []*RESTMapping{mapping3}},
    	}
    	tcs := []struct {
    		name string
    
    		mapper PriorityRESTMapper
    		input  schema.GroupKind
    		result *RESTMapping
    		err    error
    	}{
    		{
    			name:   "empty",
    			mapper: PriorityRESTMapper{Delegate: MultiRESTMapper{}},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 06 15:24:58 UTC 2018
    - 13.6K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apimachinery/pkg/api/meta/multirestmapper_test.go

    		}
    	}
    }
    
    func TestMultiRESTMapperRESTMappings(t *testing.T) {
    	mapping1, mapping2 := &RESTMapping{}, &RESTMapping{}
    	tcs := []struct {
    		name string
    
    		mapper    MultiRESTMapper
    		groupKind schema.GroupKind
    		versions  []string
    		result    []*RESTMapping
    		err       error
    	}{
    		{
    			name:      "empty with no versions",
    			mapper:    MultiRESTMapper{},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 05 01:49:02 UTC 2018
    - 13.6K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apimachinery/pkg/api/meta/multirestmapper.go

    }
    
    // RESTMapping provides the REST mapping for the resource based on the
    // kind and version. This implementation supports multiple REST schemas and
    // return the first match.
    func (m MultiRESTMapper) RESTMapping(gk schema.GroupKind, versions ...string) (*RESTMapping, error) {
    	allMappings := []*RESTMapping{}
    	errors := []error{}
    
    	for _, t := range m {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 05 23:44:02 UTC 2021
    - 5.8K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apimachinery/pkg/api/meta/interfaces.go

    	ResourcesFor(input schema.GroupVersionResource) ([]schema.GroupVersionResource, error)
    
    	// RESTMapping identifies a preferred resource mapping for the provided group kind.
    	RESTMapping(gk schema.GroupKind, versions ...string) (*RESTMapping, error)
    	// RESTMappings returns all resource mappings for the provided group kind if no
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 05 23:44:02 UTC 2021
    - 5.5K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apimachinery/pkg/api/meta/firsthit_restmapper.go

    }
    
    // RESTMapping provides the REST mapping for the resource based on the
    // kind and version. This implementation supports multiple REST schemas and
    // return the first match.
    func (m FirstHitRESTMapper) RESTMapping(gk schema.GroupKind, versions ...string) (*RESTMapping, error) {
    	errors := []error{}
    	for _, t := range m.MultiRESTMapper {
    		ret, err := t.RESTMapping(gk, versions...)
    		if err == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 05 23:44:02 UTC 2021
    - 2.8K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apimachinery/pkg/api/meta/lazy.go

    	}
    	return o.mapper.ResourcesFor(input)
    }
    
    func (o *lazyObject) RESTMapping(gk schema.GroupKind, versions ...string) (*RESTMapping, error) {
    	if err := o.init(); err != nil {
    		return nil, err
    	}
    	return o.mapper.RESTMapping(gk, versions...)
    }
    
    func (o *lazyObject) RESTMappings(gk schema.GroupKind, versions ...string) ([]*RESTMapping, error) {
    	if err := o.init(); err != nil {
    		return nil, err
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 05 23:44:02 UTC 2021
    - 3.1K bytes
    - Viewed (0)
Back to top