Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 389 for Bad (0.02 sec)

  1. src/internal/coverage/cfile/testdata/harness.go

    	} else {
    		got := fmt.Sprintf("%v", err)
    		checkWant("meta data", got)
    	}
    
    	// Now try to emit counter data file to a bad dir.
    	if err := coverage.WriteCountersDir(mangled); err == nil {
    		log.Fatal("expected error emitting counter data to bad dir")
    	} else {
    		got := fmt.Sprintf("%v", err)
    		checkWant("counter data", got)
    	}
    }
    
    func emitToUnwritableDir() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 19:41:02 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  2. src/crypto/ed25519/ed25519.go

    	}
    	switch {
    	case hash == crypto.SHA512: // Ed25519ph
    		if l := len(message); l != sha512.Size {
    			return nil, errors.New("ed25519: bad Ed25519ph message hash length: " + strconv.Itoa(l))
    		}
    		if l := len(context); l > 255 {
    			return nil, errors.New("ed25519: bad Ed25519ph context length: " + strconv.Itoa(l))
    		}
    		signature := make([]byte, SignatureSize)
    		sign(signature, priv, message, domPrefixPh, context)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:11:18 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  3. pkg/apis/resource/validation/validation_resourceclaimtemplate_test.go

    		},
    		"missing-name": {
    			wantFailures: field.ErrorList{field.Required(field.NewPath("metadata", "name"), "name or generateName is required")},
    			template:     testClaimTemplate("", goodNS, goodClaimSpec),
    		},
    		"bad-name": {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 09:18:10 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  4. src/time/internal_test.go

    	t := newTimer(runtimeNano(), 1<<63-1, empty, nil, nil)
    	defer t.Stop()
    
    	// If this test fails, we will either throw (when siftdownTimer detects
    	// bad when on update), or other timers will hang (if the timer in a
    	// heap is in a bad state). There is no reliable way to test this, but
    	// we wait on a short timer here as a smoke test (alternatively, timers
    	// in later tests may hang).
    	<-After(25 * Millisecond)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 03 14:56:37 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  5. src/cmd/go/testdata/script/mod_edit.txt

    cmpenv go.mod $WORK/go.mod.edit2
    
    # -exclude and -retract reject invalid versions.
    ! go mod edit -exclude=example.com/m@bad
    stderr '^go: -exclude=example.com/m@bad: version "bad" invalid: must be of the form v1.2.3$'
    ! go mod edit -retract=bad
    stderr '^go: -retract=bad: version "bad" invalid: must be of the form v1.2.3$'
    
    ! go mod edit -exclude=example.com/m@v2.0.0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 13:52:10 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  6. cmd/kubeadm/app/cmd/upgrade/diff_test.go

    		},
    		{
    			name:            "invalid: valid config but bad manifest path",
    			cfgPath:         testUpgradeDiffConfig,
    			setManifestPath: true,
    			manifestPath:    "bad-path",
    			expectedError:   true,
    		},
    		{
    			name:          "invalid: badly formatted version as argument",
    			cfgPath:       testUpgradeDiffConfig,
    			args:          []string{"bad-version"},
    			expectedError: true,
    		},
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 13 04:08:57 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  7. src/io/fs/glob_test.go

    			continue
    		}
    		if len(matches) != 0 {
    			t.Errorf("Glob(%#q) = %#v want []", pattern, matches)
    		}
    	}
    }
    
    func TestGlobError(t *testing.T) {
    	bad := []string{`[]`, `nonexist/[]`}
    	for _, pattern := range bad {
    		_, err := Glob(os.DirFS("."), pattern)
    		if err != path.ErrBadPattern {
    			t.Errorf("Glob(fs, %#q) returned err=%v, want path.ErrBadPattern", pattern, err)
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 18:36:52 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  8. src/runtime/runtime_test.go

    	for i := 0; i < b.N; i++ {
    		for j := 0; j < 100; j++ {
    			if errfn() == io.EOF {
    				b.Fatal("bad comparison")
    			}
    		}
    	}
    }
    
    func BenchmarkIfaceCmpNil100(b *testing.B) {
    	for i := 0; i < b.N; i++ {
    		for j := 0; j < 100; j++ {
    			if errfn1() == nil {
    				b.Fatal("bad comparison")
    			}
    		}
    	}
    }
    
    var efaceCmp1 any
    var efaceCmp2 any
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  9. pkg/scheduler/apis/config/validation/validation_test.go

    		wantErrs field.ErrorList
    	}{
    		"good": {
    			config: validConfig,
    		},
    		"bad-parallelism-invalid-value": {
    			config: invalidParallelismValue,
    			wantErrs: field.ErrorList{
    				&field.Error{
    					Type:  field.ErrorTypeInvalid,
    					Field: "parallelism",
    				},
    			},
    		},
    		"bad-resource-name-not-set": {
    			config: resourceNameNotSet,
    			wantErrs: field.ErrorList{
    				&field.Error{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 06:27:01 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  10. platforms/core-runtime/wrapper-main/src/integTest/groovy/org/gradle/integtests/WrapperChecksumVerificationTest.groovy

            server.start()
        }
    
        def "wrapper execution fails when using bad checksum"() {
            given:
            configureServer(true)
            prepareWrapper(new URI(gradleBin))
    
            and:
            file(WRAPPER_PROPERTIES_PATH) << 'distributionSha256Sum=bad'
    
            when:
            def failure = wrapperExecuter.withStackTraceChecksDisabled().runWithFailure()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 23 05:54:32 UTC 2024
    - 6K bytes
    - Viewed (0)
Back to top