Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 711 - 720 of 1,141 for case (0.01 seconds)

  1. src/bytes/buffer_test.go

    	}()
    	buf2.ReadFrom(panicReader{panic: true})
    }
    
    func TestReadFromNegativeReader(t *testing.T) {
    	var b Buffer
    	defer func() {
    		switch err := recover().(type) {
    		case nil:
    			t.Fatal("bytes.Buffer.ReadFrom didn't panic")
    		case error:
    			// this is the error string of errNegativeRead
    			wantError := "bytes.Buffer: reader returned negative count from Read"
    			if err.Error() != wantError {
    Created: Tue Dec 30 11:13:12 GMT 2025
    - Last Modified: Fri Nov 14 19:01:17 GMT 2025
    - 19.4K bytes
    - Click Count (0)
  2. src/cmd/asm/internal/asm/operand_test.go

    		err := tryParse(t, func() {
    			parser.start(lex.Tokenize(test.input))
    			addr := obj.Addr{}
    			parser.operand(&addr)
    		})
    
    		switch {
    		case err == nil:
    			t.Errorf("fail at %s: got no errors; expected %s\n", test.input, test.error)
    		case !strings.Contains(err.Error(), test.error):
    			t.Errorf("fail at %s: got %s; expected %s", test.input, err, test.error)
    		}
    	}
    }
    
    Created: Tue Dec 30 11:13:12 GMT 2025
    - Last Modified: Tue Aug 29 18:31:05 GMT 2023
    - 23.9K bytes
    - Click Count (0)
  3. build-logic/integration-testing/src/main/kotlin/gradlebuild/integrationtests/shared-configuration.kt

        val groovySourceDir = sourceSet.extensions.findByType<GroovySourceDirectorySet>()
        // The task generate test class in Groovy, so it cannot be used if the project doesn't use Groovy for integration tests.
        // This is the case for kotlin-dsl integration tests.
        if (testType == TestType.INTEGRATION && groovySourceDir != null) {
            val autoTestedSamplesTest = tasks.register<GenerateAutoTestedSamplesTestTask>("generateAutoTestedSamplesTest") {
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Mon Aug 18 16:39:23 GMT 2025
    - 12.8K bytes
    - Click Count (0)
  4. compat/maven-embedder/src/main/java/org/apache/maven/cli/MavenCli.java

                    LogLevelRecorder.Level level =
                            switch (logLevelThreshold.toLowerCase(Locale.ENGLISH)) {
                                case "warn", "warning" -> LogLevelRecorder.Level.WARN;
                                case "error" -> LogLevelRecorder.Level.ERROR;
                                default ->
                                    throw new IllegalArgumentException(
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Mon Oct 27 13:24:03 GMT 2025
    - 78.1K bytes
    - Click Count (0)
  5. cmd/erasure-decode_test.go

    			}
    			for j := range disks[:test.offDisks] {
    				if bitrotReaders[j] == nil {
    					continue
    				}
    				switch r := bitrotReaders[j].(type) {
    				case *wholeBitrotReader:
    					r.disk = badDisk{nil}
    				case *streamingBitrotReader:
    					r.disk = badDisk{nil}
    				}
    			}
    			if test.offDisks > 0 {
    				bitrotReaders[0] = nil
    			}
    			writer.Reset()
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 21K bytes
    - Click Count (0)
  6. build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/rules/AbstractGradleViolationRule.groovy

                      <div class="well">
                          Sometimes, the change was made on the `release` branch but hasn't yet been published to the baseline version.
                          In that case, you can publish a new snapshot from the release branch. This will update `released-versions.json` on `master`.
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Tue Dec 30 10:14:25 GMT 2025
    - 10.5K bytes
    - Click Count (0)
  7. internal/event/target/mqtt.go

    }
    
    // Validate MQTTArgs fields
    func (m MQTTArgs) Validate() error {
    	if !m.Enable {
    		return nil
    	}
    	u, err := xnet.ParseURL(m.Broker.String())
    	if err != nil {
    		return err
    	}
    	switch u.Scheme {
    	case "ws", "wss", "tcp", "ssl", "tls", "tcps":
    	default:
    		return errors.New("unknown protocol in broker address")
    	}
    	if m.QueueDir != "" {
    		if !filepath.IsAbs(m.QueueDir) {
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Fri Sep 06 23:06:30 GMT 2024
    - 8.2K bytes
    - Click Count (0)
  8. internal/bucket/replication/rule.go

    		return errTagsDeleteMarkerReplicationDisallowed
    	}
    	return r.ExistingObjectReplication.Validate()
    }
    
    // MetadataReplicate  returns true if object is not a replica or in the case of replicas,
    // replica modification sync is enabled.
    func (r Rule) MetadataReplicate(obj ObjectOpts) bool {
    	if !obj.Replica {
    		return true
    	}
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 8.3K bytes
    - Click Count (0)
  9. fastapi/security/http.py

        For example, in an HTTP Bearer token scheme, the client will send a header
        like:
    
        ```
        Authorization: Bearer deadbeef12346
        ```
    
        In this case:
    
        * `scheme` will have the value `"Bearer"`
        * `credentials` will have the value `"deadbeef12346"`
        """
    
        scheme: Annotated[
            str,
            Doc(
                """
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 21:25:59 GMT 2025
    - 13.2K bytes
    - Click Count (0)
  10. docs/ja/docs/tutorial/cookie-param-models.md

    ///
    
    ## 余分なクッキーを禁止する
    
    特定の(あまり一般的ではないかもしれない)ケースで、受け付けるクッキーを**制限**する必要があるかもしれません。
    
    あなたのAPIは独自の <abbr title="念のためですが、これはジョークです。クッキー同意とは関係ありませんが、APIでさえ不適切なクッキーを拒否できるとは愉快ですね。クッキーでも食べてください。🍪 (原文: This is a joke, just in case. It has nothing to do with cookie consents, but it's funny that even the API can now reject the poor cookies. Have a cookie. 🍪)">クッキー同意</abbr> を管理する能力を持っています。 🤪🍪
    
    Pydanticのモデルの Configuration を利用して、 `extra` フィールドを `forbid` とすることができます。
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Fri Feb 28 14:21:27 GMT 2025
    - 4.5K bytes
    - Click Count (0)
Back to Top