Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 492 for sanity (0.14 sec)

  1. src/sync/waitgroup.go

    	// Now there can't be concurrent mutations of state:
    	// - Adds must not happen concurrently with Wait,
    	// - Wait does not increment waiters if it sees counter == 0.
    	// Still do a cheap sanity check to detect WaitGroup misuse.
    	if wg.state.Load() != state {
    		panic("sync: WaitGroup misuse: Add called concurrently with Wait")
    	}
    	// Reset waiters count to 0.
    	wg.state.Store(0)
    	for ; w != 0; w-- {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 21:14:51 UTC 2024
    - 4K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/base/FunctionsTest.java

        Function<String, @Nullable Integer> function = Functions.forMap(map, null);
    
        assertEquals((Integer) 1, function.apply("One"));
        assertNull(function.apply("Two"));
    
        // check basic sanity of equals and hashCode
        new EqualsTester()
            .addEqualityGroup(function)
            .addEqualityGroup(Functions.forMap(map, 1))
            .testEquals();
      }
    
      @J2ktIncompatible
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Feb 09 15:49:48 UTC 2024
    - 16K bytes
    - Viewed (0)
  3. ci/official/utilities/setup_macos.sh

    if [[ "${TFCI_MACOS_PYENV_INSTALL_ENABLE}" == 1 ]]; then
      # Install the necessary Python, unless it's already present
      pyenv install -s "$TFCI_PYTHON_VERSION"
      pyenv local "$TFCI_PYTHON_VERSION"
      # Do a sanity check to make sure that we using the correct Python version
      python --version
    fi
    
    # TFCI Mac VM images do not have twine installed by default so we need to
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 15 15:23:28 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  4. maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/scopes/Maven4ScopeManagerConfiguration.java

                    DependencyScope.SYSTEM.id(),
                    DependencyScope.SYSTEM.isTransitive(),
                    all(),
                    MavenArtifactProperties.LOCAL_PATH));
    
            // == sanity check
            if (result.size() != org.apache.maven.api.DependencyScope.values().length - 1) { // sans "undefined"
                throw new IllegalStateException("Maven4 API dependency scope mismatch");
            }
    
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Wed Mar 27 14:46:12 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  5. src/reflect/visiblefields_test.go

    				// ditto.
    				expectField.Index = expect.index
    				if !DeepEqual(gotField, expectField) {
    					t.Fatalf("unexpected field result\ngot %#v\nwant %#v", gotField, expectField)
    				}
    
    				// Sanity check that we can actually access the field by the
    				// expected name.
    				gotField1, ok := typ.FieldByName(expect.name)
    				if !ok {
    					t.Fatalf("field %q not accessible by name", expect.name)
    				}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 08 13:44:41 UTC 2022
    - 5.3K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/io/ResourcesTest.java

        writer.println("rud a chur ar an méar fhada");
        writer.close();
    
        // First check that we can't find it without setting the context loader.
        // This is a sanity check that the test doesn't spuriously pass because
        // the resource is visible to the system class loader.
        assertThrows(IllegalArgumentException.class, () -> Resources.getResource(tempFile.getName()));
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 6.8K bytes
    - Viewed (0)
  7. src/encoding/gob/type_test.go

    	typeLock.Lock()
    	defer typeLock.Unlock()
    	t, err := getBaseType(name, rt)
    	if err != nil {
    		panic("getTypeUnlocked: " + err.Error())
    	}
    	return t
    }
    
    // Sanity checks
    func TestBasic(t *testing.T) {
    	for _, tt := range basicTypes {
    		if tt.id.string() != tt.str {
    			t.Errorf("checkType: expected %q got %s", tt.str, tt.id.string())
    		}
    		if tt.id == 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 01 14:26:13 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/io/ResourcesTest.java

        writer.println("rud a chur ar an méar fhada");
        writer.close();
    
        // First check that we can't find it without setting the context loader.
        // This is a sanity check that the test doesn't spuriously pass because
        // the resource is visible to the system class loader.
        assertThrows(IllegalArgumentException.class, () -> Resources.getResource(tempFile.getName()));
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 6.8K bytes
    - Viewed (0)
  9. src/net/http/http_test.go

    	out, err := testenv.Command(t, goBin, "tool", "nm", goBin).CombinedOutput()
    	if err != nil {
    		t.Fatalf("go tool nm: %v: %s", err, out)
    	}
    	wantSym := map[string]bool{
    		// Verify these exist: (sanity checking this test)
    		"net/http.(*Client).do":           true,
    		"net/http.(*Transport).RoundTrip": true,
    
    		// Verify these don't exist:
    		"net/http.http2Server":           false,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 18:18:19 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  10. pkg/util/iptree/iptree.go

    func (t *Tree[T]) GetPrefix(prefix netip.Prefix) (T, bool) {
    	var zeroT T
    
    	n := t.rootV4
    	if prefix.Addr().Is6() {
    		n = t.rootV6
    	}
    	bitPosition := 0
    	// mask the address for sanity
    	address := prefix.Masked().Addr()
    	// we can't check longer than the request mask
    	mask := prefix.Bits()
    	// walk the network bits of the prefix
    	for bitPosition < mask {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 21:05:04 UTC 2023
    - 17.7K bytes
    - Viewed (0)
Back to top