Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1071 - 1080 of 1,563 for examples (0.1 sec)

  1. android/guava-testlib/src/com/google/common/collect/testing/testers/SetEqualsTester.java

      @CollectionSize.Require(absent = CollectionSize.ZERO)
      public void testEquals_otherSetWithDifferentElements() {
        Collection<E> elements = getSampleElements(getNumElements() - 1);
        elements.add(getSubjectGenerator().samples().e3());
    
        assertFalse(
            "A Set should not equal another Set containing different elements.",
            getSet().equals(MinimalSet.from(elements)));
      }
    
      @CollectionSize.Require(absent = CollectionSize.ZERO)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/testers/SetEqualsTester.java

      @CollectionSize.Require(absent = CollectionSize.ZERO)
      public void testEquals_otherSetWithDifferentElements() {
        Collection<E> elements = getSampleElements(getNumElements() - 1);
        elements.add(getSubjectGenerator().samples().e3());
    
        assertFalse(
            "A Set should not equal another Set containing different elements.",
            getSet().equals(MinimalSet.from(elements)));
      }
    
      @CollectionSize.Require(absent = CollectionSize.ZERO)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  3. docs/pt/docs/advanced/async-tests.md

    O `TestClient` é baseado no <a href="https://www.python-httpx.org" class="external-link" target="_blank">HTTPX</a>, e felizmente nós podemos utilizá-lo diretamente para testar a API.
    
    ## Exemplo
    
    Para um exemplos simples, vamos considerar uma estrutura de arquivos semelhante ao descrito em [Bigger Applications](../tutorial/bigger-applications.md){.internal-link target=_blank} e [Testing](../tutorial/testing.md){.internal-link target=_blank}:
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  4. chainable_api.go

    	}
    	return
    }
    
    // Joins specify Joins conditions
    //
    //	db.Joins("Account").Find(&user)
    //	db.Joins("JOIN emails ON emails.user_id = users.id AND emails.email = ?", "jinzhu@example.org").Find(&user)
    //	db.Joins("Account", DB.Select("id").Where("user_id = users.id AND name = ?", "someName").Model(&Account{}))
    func (db *DB) Joins(query string, args ...interface{}) (tx *DB) {
    Registered: Sun Nov 03 09:35:10 UTC 2024
    - Last Modified: Mon Jun 24 09:42:59 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/TestEnumMapGenerator.java

     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public abstract class TestEnumMapGenerator implements TestMapGenerator<AnEnum, String> {
    
      @Override
      public SampleElements<Entry<AnEnum, String>> samples() {
        return new SampleElements<>(
            mapEntry(AnEnum.A, "January"),
            mapEntry(AnEnum.B, "February"),
            mapEntry(AnEnum.C, "March"),
            mapEntry(AnEnum.D, "April"),
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/TreeTraverser.java

    import java.util.function.Consumer;
    import javax.annotation.CheckForNull;
    
    /**
     * Views elements of a type {@code T} as nodes in a tree, and provides methods to traverse the trees
     * induced by this traverser.
     *
     * <p>For example, the tree
     *
     * <pre>{@code
     *        h
     *      / | \
     *     /  e  \
     *    d       g
     *   /|\      |
     *  / | \     f
     * a  b  c
     * }</pre>
     *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  7. docs/zh/docs/advanced/additional-responses.md

    **FastAPI**将保留来自 `responses` 的附加信息,并将其与模型中的JSON Schema结合起来。
    
    例如,您可以使用状态码 `404` 声明响应,该响应使用`Pydantic`模型并具有自定义的` description` 。
    
    以及一个状态码为 `200` 的响应,它使用您的 `response_model` ,但包含自定义的 `example` :
    
    ```Python hl_lines="20-31"
    {!../../docs_src/additional_responses/tutorial003.py!}
    ```
    
    所有这些都将被合并并包含在您的OpenAPI中,并在API文档中显示:
    
    ## 联合预定义响应和自定义响应
    
    您可能希望有一些应用于许多路径操作的预定义响应,但是你想将不同的路径和自定义的相应组合在一块。
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  8. cmd/veeam-sos-api.go

    	} `xml:"SystemRecommendations"`
    }
    
    // This optional functionality allows vendors to report space information to Veeam products, and Veeam will make placement
    // decisions based on this information. For example, Veeam Backup & Replication has a Scale-out-Backup-Repository feature where
    // multiple buckets can be used together. The placement logic for additional backup files is based on available space. Other values
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 15 00:34:56 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  9. common-protos/k8s.io/api/apidiscovery/v2beta1/generated.proto

      // For many clients the singular form of the resource will be more understandable to users reading messages and should be used when integrating the name of the resource into a sentence.
      // The command line tool kubectl, for example, allows use of the singular resource name in place of plurals.
      // The singular form of a resource should always be an optional element - when in doubt use the canonical resource name.
      optional string singularResource = 4;
    
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Mon Mar 11 18:43:24 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  10. istioctl/pkg/checkinject/checkinject.go

    		Long: `
    Checks associated resources of the given resource, and running webhooks to examine whether the pod can be or will be injected or not.`,
    		Example: `  # Check the injection status of a pod
      istioctl experimental check-inject details-v1-fcff6c49c-kqnfk.test
    	
      # Check the injection status of a pod under a deployment
      istioctl x check-inject deployment/details-v1
    
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Sat Apr 13 05:23:38 UTC 2024
    - 9.3K bytes
    - Viewed (0)
Back to top