Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 95 for bad2 (0.03 sec)

  1. test/fixedbugs/issue8606b.go

    	(*reflect.StringHeader)(unsafe.Pointer(&bad2)).Data = uintptr(unsafe.Pointer(&b[1]))
    
    	for _, test := range []struct {
    		a, b interface{}
    	}{
    		{SI{s: bad1, i: 1}, SI{s: bad2, i: 2}},
    		{SS{s: bad1, t: "a"}, SS{s: bad2, t: "aa"}},
    		{SS{s: "a", t: bad1}, SS{s: "b", t: bad2}},
    		// This one would panic because the length of both strings match, and we check
    		// the body of the bad strings before the body of the good strings.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  2. test/fixedbugs/issue9006.go

    type T2 int
    
    func NewT2(x int) T2 { return T2(x) }
    
    func main() {
    	switch (T1{}) {
    	case NewT1(1):
    		panic("bad1")
    	case NewT1(0):
    		// ok
    	default:
    		panic("bad2")
    	}
    
    	switch T2(0) {
    	case NewT2(2):
    		panic("bad3")
    	case NewT2(0):
    		// ok
    	default:
    		panic("bad4")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 520 bytes
    - Viewed (0)
  3. test/convlit.go

    // implicit conversions merit scrutiny
    var s string
    var bad1 string = 1  // ERROR "conver|incompatible|invalid|cannot"
    var bad2 = s + 1     // ERROR "conver|incompatible|invalid|cannot"
    var bad3 = s + 'a'   // ERROR "conver|incompatible|invalid|cannot"
    var bad4 = "a" + 1   // ERROR "literals|incompatible|convert|invalid"
    var bad5 = "a" + 'a' // ERROR "literals|incompatible|convert|invalid"
    
    var bad6 int = 1.5       // ERROR "convert|truncate"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 23 05:11:09 UTC 2021
    - 2.4K bytes
    - Viewed (0)
  4. src/cmd/go/testdata/script/mod_verify.txt

    cp go.sum.good go.sum
    go mod verify
    ! exists $GOPATH/pkg/mod/cache/download/rsc.io/quote/@v/v1.1.0.zip
    
    # With bad go.sum, verify succeeds by avoiding download.
    cp go.sum.bad go.sum
    go mod verify
    ! exists $GOPATH/pkg/mod/cache/download/rsc.io/quote/@v/v1.1.0.zip
    
    # With bad go.sum, sync (which must download) fails.
    rm go.sum
    cp go.sum.bad go.sum
    ! go mod tidy
    stderr 'checksum mismatch'
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 28 17:19:14 UTC 2021
    - 2.3K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/authentication/token/cache/cached_token_authenticator_test.go

    	a.AuthenticateToken(context.Background(), "bad1")
    	a.AuthenticateToken(context.Background(), "bad2")
    	a.AuthenticateToken(context.Background(), "bad3")
    	fakeClock.Step(2 * time.Microsecond)
    	a.AuthenticateToken(context.Background(), "bad1")
    	a.AuthenticateToken(context.Background(), "bad2")
    	a.AuthenticateToken(context.Background(), "bad3")
    	fakeClock.Step(2 * time.Microsecond)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 03 16:16:51 UTC 2023
    - 20.3K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/responsewriters/writers_test.go

    			out:         smallPayload,
    			outErrs:     []error{fmt.Errorf("bad"), fmt.Errorf("bad2")},
    			mediaType:   "application/json",
    			req:         &http.Request{Header: http.Header{}, URL: &url.URL{Path: "/path"}},
    			wantCode:    http.StatusInternalServerError,
    			wantHeaders: http.Header{"Content-Type": []string{"text/plain"}},
    			wantBody:    []byte(": bad"),
    		},
    
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/objectmeta/coerce_test.go

    			"metadata": map[string]interface{}{
    				"name": "good",
    				"Name": "bad1",
    				"nAme": "bad2",
    				"naMe": "bad3",
    				"namE": "bad4",
    
    				"namespace": "good",
    				"Namespace": "bad1",
    				"nAmespace": "bad2",
    				"naMespace": "bad3",
    				"namEspace": "bad4",
    
    				"creationTimestamp": "a",
    			},
    		}}
    
    		meta, _, err := GetObjectMeta(u.Object, true)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:48:03 UTC 2023
    - 12.7K bytes
    - Viewed (0)
  8. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/properties/annotations/DefaultTypeMetadataStoreTest.groovy

        }
    
        static class TypeWithUnannotatedProperties extends DefaultTask {
            String bad1
            File bad2
            @Input
            String useful
        }
    
        def "warns about and ignores properties that are not annotated"() {
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 20:42:35 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  9. platforms/core-execution/snapshots/src/test/groovy/org/gradle/internal/snapshot/CaseSensitiveVfsRelativePathTest.groovy

            expect:
            nameSorted == caseSensitiveSorted
    
            where:
            children << [
                ["bAdA", "BaDb"],
                ["bAdA", "BaDb", "Badc"],
                ["bad", "c", "ab"],
                ["Bad", "c", "aB"],
                ["Bad", "c", "AB"],
                ["Bad", "cA", "AB"],
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:34:50 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  10. platforms/core-execution/snapshots/src/test/groovy/org/gradle/internal/snapshot/AbstractCaseVfsRelativePathTest.groovy

        }
    
        static final List<List<String>> CHILDREN_LISTS = [
            ["bAdA"],
            ["bAdA", "BaDb"],
            ["bAdA", "BaDb", "Badc"],
            ["bAdA/something", "BaDb/other", "Badc/different"],
            ["bad/mine", "c/other", "ab/second"],
            ["Bad/mine", "c/other", "aB/second"],
            ["Bad/mine", "c/other", "AB/second"],
            ["Bad/mine", "cA/other", "AB/second"],
            ["c", "b/something", "a/very/long/suffix"]
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:34:50 UTC 2023
    - 9.3K bytes
    - Viewed (0)
Back to top