Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 27 of 27 for test_app (0.24 sec)

  1. src/encoding/gob/encoder_test.go

    	}
    	var t7p Type7
    	if err := encAndDec(t7, &t7p); err != nil {
    		t.Error(err)
    	}
    }
    
    var testInt int
    var testFloat32 float32
    var testString string
    var testSlice []string
    var testMap map[string]int
    var testArray [7]int
    
    type SingleTest struct {
    	in  any
    	out any
    	err string
    }
    
    var singleTests = []SingleTest{
    	{17, &testInt, ""},
    	{float32(17.5), &testFloat32, ""},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 29.7K bytes
    - Viewed (0)
  2. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/versions/VersionConflictResolutionIntegrationTest.groovy

            resolve.prepare()
    
            when:
            run("tool:checkDeps")
    
            then:
            resolve.expectGraph {
                root(":tool", "test:tool:") {
                    project(":api", "test:api:") {
                        configuration = "runtimeElements"
                        edge("org:foo:1.3.3", "org:foo:1.4.4").byConflictResolution("between versions 1.4.4 and 1.3.3")
                    }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 09 11:33:46 UTC 2024
    - 76.2K bytes
    - Viewed (0)
  3. src/strings/strings_test.go

    	step := rune(13)
    	if r >= 'a' && r <= 'z' {
    		return ((r - 'a' + step) % 26) + 'a'
    	}
    	if r >= 'A' && r <= 'Z' {
    		return ((r - 'A' + step) % 26) + 'A'
    	}
    	return r
    }
    
    func TestMap(t *testing.T) {
    	// Run a couple of awful growth/shrinkage tests
    	a := tenRunes('a')
    	// 1.  Grow. This triggers two reallocations in Map.
    	maxRune := func(rune) rune { return unicode.MaxRune }
    	m := Map(maxRune, a)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 12:58:37 UTC 2024
    - 53K bytes
    - Viewed (0)
  4. src/cmd/cgo/internal/test/test.go

    		t.Errorf("got %d, want %d", got, want)
    	}
    
    	C.F18298(nil)
    	var v18298 C.T18298_2
    	C.G18298(C.T18298_1(v18298))
    }
    
    // issue 17723
    
    func testAPI() {
    	var cs *C.char
    	cs = C.CString("hello")
    	defer C.free(unsafe.Pointer(cs))
    	var s string
    	s = C.GoString((*C.char)(C.api_hello))
    	s = C.GoStringN((*C.char)(C.api_hello), C.int(6))
    	var b []byte
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:50:06 UTC 2024
    - 48.5K bytes
    - Viewed (0)
  5. src/reflect/all_test.go

    	}
    }
    
    func TestNilPtrValueSub(t *testing.T) {
    	var pi *int
    	if pv := ValueOf(pi); pv.Elem().IsValid() {
    		t.Error("ValueOf((*int)(nil)).Elem().IsValid()")
    	}
    }
    
    func TestMap(t *testing.T) {
    	m := map[string]int{"a": 1, "b": 2}
    	mv := ValueOf(m)
    	if n := mv.Len(); n != len(m) {
    		t.Errorf("Len = %d, want %d", n, len(m))
    	}
    	keys := mv.MapKeys()
    	newmap := MakeMap(mv.Type())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 218.8K bytes
    - Viewed (0)
  6. pkg/generated/openapi/zz_generated.openapi.go

    relative JSON path (i.e. with array notation) scoped to the location of this x-kubernetes-validations extension in the schema and refer to an existing field. e.g. when validation checks if a specific attribute `foo` under a map `testMap`, the fieldPath could be set to `.testMap.foo` If the validation checks two lists must have unique attributes, the fieldPath could be set to either of the list: e.g. `.testList` It does not support list numeric index. It supports child operation to refer to an existing...
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 05 18:37:07 UTC 2024
    - 3M bytes
    - Viewed (0)
  7. api/openapi-spec/swagger.json

    relative JSON path (i.e. with array notation) scoped to the location of this x-kubernetes-validations extension in the schema and refer to an existing field. e.g. when validation checks if a specific attribute `foo` under a map `testMap`, the fieldPath could be set to `.testMap.foo` If the validation checks two lists must have unique attributes, the fieldPath could be set to either of the list: e.g. `.testList` It does not support list numeric index. It supports child operation to refer to an existing...
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 05 18:37:07 UTC 2024
    - 3.1M bytes
    - Viewed (0)
Back to top