Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 67 for typexpr (0.15 sec)

  1. pilot/pkg/model/extensions.go

    }
    
    func workloadModeForListenerClass(class istionetworking.ListenerClass) typeapi.WorkloadMode {
    	switch class {
    	case istionetworking.ListenerClassGateway:
    		return typeapi.WorkloadMode_CLIENT
    	case istionetworking.ListenerClassSidecarInbound:
    		return typeapi.WorkloadMode_SERVER
    	case istionetworking.ListenerClassSidecarOutbound:
    		return typeapi.WorkloadMode_CLIENT
    	case istionetworking.ListenerClassUndefined:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 22:20:44 UTC 2024
    - 11K bytes
    - Viewed (0)
  2. src/cmd/vet/testdata/stdversion/stdversion.go

    package stdversion
    
    import "reflect"
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 01:02:40 UTC 2024
    - 142 bytes
    - Viewed (0)
  3. tests/test_generic_parameterless_depends.py

    from typing import TypeVar
    
    from fastapi import Depends, FastAPI
    from fastapi.testclient import TestClient
    from typing_extensions import Annotated
    
    app = FastAPI()
    
    T = TypeVar("T")
    
    Dep = Annotated[T, Depends()]
    
    
    class A:
        pass
    
    
    class B:
        pass
    
    
    @app.get("/a")
    async def a(dep: Dep[A]):
        return {"cls": dep.__class__.__name__}
    
    
    @app.get("/b")
    async def b(dep: Dep[B]):
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Apr 02 02:52:56 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  4. src/database/sql/fakedb_test.go

    	case "bool":
    		return reflect.TypeFor[bool]()
    	case "nullbool":
    		return reflect.TypeFor[NullBool]()
    	case "int16":
    		return reflect.TypeFor[int16]()
    	case "nullint16":
    		return reflect.TypeFor[NullInt16]()
    	case "int32":
    		return reflect.TypeFor[int32]()
    	case "nullint32":
    		return reflect.TypeFor[NullInt32]()
    	case "string":
    		return reflect.TypeFor[string]()
    	case "nullstring":
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 01 12:38:07 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  5. src/encoding/gob/type.go

    var (
    	gobEncoderInterfaceType        = reflect.TypeFor[GobEncoder]()
    	gobDecoderInterfaceType        = reflect.TypeFor[GobDecoder]()
    	binaryMarshalerInterfaceType   = reflect.TypeFor[encoding.BinaryMarshaler]()
    	binaryUnmarshalerInterfaceType = reflect.TypeFor[encoding.BinaryUnmarshaler]()
    	textMarshalerInterfaceType     = reflect.TypeFor[encoding.TextMarshaler]()
    	textUnmarshalerInterfaceType   = reflect.TypeFor[encoding.TextUnmarshaler]()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 02:00:26 UTC 2024
    - 27.2K bytes
    - Viewed (0)
  6. src/unique/clone_test.go

    	testCloneSeq[testStruct](t, cSeq(8))
    }
    
    func cSeq(stringOffsets ...uintptr) cloneSeq {
    	return cloneSeq{stringOffsets: stringOffsets}
    }
    
    func testCloneSeq[T any](t *testing.T, want cloneSeq) {
    	typName := reflect.TypeFor[T]().Name()
    	typ := abi.TypeOf(*new(T))
    	t.Run(typName, func(t *testing.T) {
    		got := makeCloneSeq(typ)
    		if !reflect.DeepEqual(got, want) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 18:14:07 UTC 2024
    - 1K bytes
    - Viewed (0)
  7. src/encoding/json/decode_test.go

    	{CaseName: Name(""), in: `{"X": [1,2,3], "Y": 4}`, ptr: new(T), out: T{Y: 4}, err: &UnmarshalTypeError{"array", reflect.TypeFor[string](), 7, "T", "X"}},
    	{CaseName: Name(""), in: `{"X": 23}`, ptr: new(T), out: T{}, err: &UnmarshalTypeError{"number", reflect.TypeFor[string](), 8, "T", "X"}},
    	{CaseName: Name(""), in: `{"x": 1}`, ptr: new(tx), out: tx{}},
    	{CaseName: Name(""), in: `{"x": 1}`, ptr: new(tx), out: tx{}},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 16:40:14 UTC 2024
    - 67.6K bytes
    - Viewed (0)
  8. pkg/typemap/map.go

    }
    
    func Set[T any](t TypeMap, v T) {
    	interfaceType := reflect.TypeOf((*T)(nil)).Elem()
    	t.inner[interfaceType] = v
    }
    
    func Get[T any](t TypeMap) *T {
    	v, f := t.inner[reflect.TypeFor[T]()]
    	if f {
    		return ptr.Of(v.(T))
    	}
    	return nil
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 16:38:40 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  9. analysis/analysis-api/testData/components/compilerFacility/compilation/javaAnnotationWithVararg.ir.txt

            overridden:
              public open fun setContentView (p0: kotlin.Int): kotlin.Unit declared in p2.Parent
            $this: VALUE_PARAMETER name:<this> type:p2.Parent
            VALUE_PARAMETER name:p0 index:0 type:kotlin.Int
              annotations:
                Anno(value = ["UnknownNullness", "MissingNullability"])
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Apr 16 19:18:28 UTC 2024
    - 3K bytes
    - Viewed (0)
  10. src/unique/handle_test.go

    		s: [2]testStringStruct{testStringStruct{"y"}, testStringStruct{"z"}},
    	})
    	testHandle[testStruct](t, testStruct{0.5, "184"})
    }
    
    func testHandle[T comparable](t *testing.T, value T) {
    	name := reflect.TypeFor[T]().Name()
    	t.Run(fmt.Sprintf("%s/%#v", name, value), func(t *testing.T) {
    		t.Parallel()
    
    		v0 := Make(value)
    		v1 := Make(value)
    
    		if v0.Value() != v1.Value() {
    			t.Error("v0.Value != v1.Value")
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 18:14:07 UTC 2024
    - 2.5K bytes
    - Viewed (0)
Back to top