Search Options

Results per page
Sort
Preferred Languages
Advance

Results 761 - 770 of 1,270 for expectEq (0.11 sec)

  1. android/guava-tests/test/com/google/common/io/FilesTest.java

        File file = createTempFile();
        Files.write(bytes, file);
    
        // Test
        MappedByteBuffer actual = Files.map(file);
    
        // Verify
        ByteBuffer expected = ByteBuffer.wrap(bytes);
        assertTrue("ByteBuffers should be equal.", expected.equals(actual));
      }
    
      public void testMap_noSuchFile() throws IOException {
        // Setup
        File file = createTempFile();
        boolean deleted = file.delete();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 22.1K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/io/PatternFilenameFilter.java

      }
    
      /*
       * Our implementation works fine with a null `dir`. However, there's nothing in the documentation
       * of the supertype that suggests that implementations are expected to tolerate null. That said, I
       * see calls in Google code that pass a null `dir` to a FilenameFilter.... So let's declare the
       * parameter as non-nullable (since passing null to a FilenameFilter is unsafe in general), but if
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed May 17 14:35:11 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  3. cmd/api-errors_test.go

    }
    
    func TestAPIErrCode(t *testing.T) {
    	ctx := context.Background()
    	for i, testCase := range toAPIErrorTests {
    		errCode := toAPIErrorCode(ctx, testCase.err)
    		if errCode != testCase.errCode {
    			t.Errorf("Test %d: Expected error code %d, got %d", i+1, testCase.errCode, errCode)
    		}
    	}
    }
    
    // Check if an API error is properly defined
    func TestAPIErrCodeDefinition(t *testing.T) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Sep 25 15:13:08 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/base/Supplier.java

     * or method references instead of classes, leaving your code easier to migrate in the future.
     *
     * <p>To use an existing supplier instance (say, named {@code supplier}) in a context where the
     * <i>other type</i> of supplier is expected, use the method reference {@code supplier::get}. A
     * future version of {@code com.google.common.base.Supplier} will be made to <i>extend</i> {@code
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed May 15 12:15:07 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb2/info/Smb2QueryDirectoryResponse.java

            int start = bufferIndex;
            int structureSize = SMBUtil.readInt2(buffer, bufferIndex);
    
            if ( structureSize != 9 ) {
                throw new SMBProtocolDecodingException("Expected structureSize = 9");
            }
    
            int bufferOffset = SMBUtil.readInt2(buffer, bufferIndex + 2) + getHeaderStart();
            bufferIndex += 4;
            int bufferLength = SMBUtil.readInt4(buffer, bufferIndex);
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 3.6K bytes
    - Viewed (0)
  6. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/artifact/MavenArtifactProperties.java

         * Resolver is and will remain agnostic of consumer project use cases.
         */
        public static final String CONSTITUTES_BUILD_PATH = "constitutesBuildPath";
    
        /**
         * The (expected) path to the artifact on the local filesystem. An artifact which has this property set is assumed
         * to be not present in any regular repository and likewise has no artifact descriptor. Artifact resolution will
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  7. docs/en/docs/tutorial/query-params-str-validations.md

    The **default** value of the **function parameter** is the **actual default** value, that's more intuitive with Python in general. 😌
    
    You could **call** that same function in **other places** without FastAPI, and it would **work as expected**. If there's a **required** parameter (without a default value), your **editor** will let you know with an error, **Python** will also complain if you run it without passing the required parameter.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 25.4K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/QueuesTest.java

        Future<?> possiblyIgnoredError = threadPool.submit(new Interrupter(currentThread()));
        try {
          Queues.drain(q, ImmutableList.of(), 100, MAX_VALUE, NANOSECONDS);
          fail();
        } catch (InterruptedException expected) {
        }
      }
    
      public void testDrainUninterruptibly_doesNotThrow() throws Exception {
        for (BlockingQueue<Object> q : blockingQueues()) {
          testDrainUninterruptibly_doesNotThrow(q);
        }
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 02:42:09 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/HttpUrlTest.kt

      fun parseTrimsAsciiWhitespace() {
        val expected = parse("http://host/")
        // Leading.
        assertThat(parse("http://host/\u000c\n\t \r")).isEqualTo(expected)
        // Trailing.
        assertThat(parse("\r\n\u000c \thttp://host/")).isEqualTo(expected)
        // Both.
        assertThat(parse(" http://host/ ")).isEqualTo(expected)
        // Both.
        assertThat(parse("    http://host/    ")).isEqualTo(expected)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 67.9K bytes
    - Viewed (0)
  10. docs/site-replication/run-ssec-object-replication-with-compression.sh

    	echo "BUG: MD5 checksum of object 'minio2/test-bucket/encrypted' doesn't match with source. Expected: '${src_obj1_md5}', Found: '${rep_obj1_md5}'"
    	exit_1
    fi
    if [ "${src_obj2_md5}" != "${rep_obj2_md5}" ]; then
    	echo "BUG: MD5 checksum of object 'minio2/test-bucket/defpartsize' doesn't match with source. Expected: '${src_obj2_md5}', Found: '${rep_obj2_md5}'"
    	exit_1
    fi
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Sep 24 08:03:58 UTC 2024
    - 8.3K bytes
    - Viewed (0)
Back to top