Search Options

Results per page
Sort
Preferred Languages
Advance

Results 691 - 700 of 1,270 for expectEq (0.1 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/ws/RealWebSocket.kt

      ) {
        if (response.code != 101) {
          throw ProtocolException(
            "Expected HTTP 101 response but was '${response.code} ${response.message}'",
          )
        }
    
        val headerConnection = response.header("Connection")
        if (!"Upgrade".equals(headerConnection, ignoreCase = true)) {
          throw ProtocolException(
            "Expected 'Connection' header value 'Upgrade' but was '$headerConnection'",
          )
        }
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 01 14:21:25 UTC 2024
    - 22.1K bytes
    - Viewed (0)
  2. cmd/erasure-decode_test.go

    		t.Errorf("erasureCreateFile returned %d, expected %d", n, length)
    	}
    
    	// To generate random offset/length.
    	r := rand.New(rand.NewSource(UTCNow().UnixNano()))
    
    	buf := &bytes.Buffer{}
    
    	// Verify erasure.Decode() for random offsets and lengths.
    	for i := 0; i < iterations; i++ {
    		offset := r.Int63n(length)
    		readLen := r.Int63n(length - offset)
    
    		expected := data[offset : offset+readLen]
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jan 30 20:43:25 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/MultipartReader.kt

        @Throws(IOException::class)
        constructor(response: ResponseBody) : this(
          source = response.source(),
          boundary =
            response.contentType()?.parameter("boundary")
              ?: throw ProtocolException("expected the Content-Type to have a boundary parameter"),
        )
    
        @Throws(IOException::class)
        fun nextPart(): Part? {
          check(!closed) { "closed" }
    
          if (noMoreParts) return null
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/AbstractTableReadTest.java

      }
    
      public void testHashCode() {
        table = create("foo", 1, 'a', "bar", 1, 'b', "foo", 3, 'c');
        int expected =
            Objects.hashCode("foo", 1, 'a')
                + Objects.hashCode("bar", 1, 'b')
                + Objects.hashCode("foo", 3, 'c');
        assertEquals(expected, table.hashCode());
      }
    
      public void testToStringSize1() {
        table = create("foo", 1, 'a');
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 15 17:36:06 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  5. internal/bucket/lifecycle/rule_test.go

    			var rule Rule
    			err := xml.Unmarshal([]byte(tc.inputXML), &rule)
    			if err != nil {
    				t.Fatal(err)
    			}
    
    			if err := rule.Validate(); err != tc.expectedErr {
    				t.Fatalf("%d: Expected %v but got %v", i+1, tc.expectedErr, err)
    			}
    		})
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed May 01 01:11:10 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/core/beans/impl/MethodDescTest.java

            assertThat(foo.isAbstract(), is(not(true)));
            assertThat(foo.invoke(new MyBean()), is((Object) "hoge"));
        }
    
        /**
         * @throws Exception
         */
        @Test(expected = MethodNotStaticRuntimeException.class)
        public void testFoo_InvokeStatic() throws Exception {
            final BeanDesc beanDesc = new BeanDescImpl(MyBean.class);
            final MethodDesc foo = beanDesc.getMethodDesc("foo");
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  7. compat/maven-plugin-api/src/main/java/org/apache/maven/plugin/Mojo.java

         *
         * @throws MojoExecutionException if an unexpected problem occurs.
         * Throwing this exception causes a "BUILD ERROR" message to be displayed.
         * @throws MojoFailureException if an expected problem (such as a compilation failure) occurs.
         * Throwing this exception causes a "BUILD FAILURE" message to be displayed.
         */
        void execute() throws MojoExecutionException, MojoFailureException;
    
        /**
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/primitives/DoublesTest.java

          return null;
        }
      }
    
      @GwtIncompatible // Doubles.tryParse
      private static void checkTryParse(String input) {
        Double expected = referenceTryParse(input);
        assertThat(Doubles.tryParse(input)).isEqualTo(expected);
        if (expected != null && !Doubles.FLOATING_POINT_PATTERN.matcher(input).matches()) {
          // TODO(cpovirk): Use SourceCodeEscapers if it is added to Guava.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 32.2K bytes
    - Viewed (0)
  9. docs/en/docs/tutorial/request-files.md

    * It exposes an actual Python <a href="https://docs.python.org/3/library/tempfile.html#tempfile.SpooledTemporaryFile" class="external-link" target="_blank">`SpooledTemporaryFile`</a> object that you can pass directly to other libraries that expect a file-like object.
    
    ### `UploadFile`
    
    `UploadFile` has the following attributes:
    
    * `filename`: A `str` with the original file name that was uploaded (e.g. `myimage.jpg`).
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  10. tests/test_tutorial/test_path_params/test_tutorial005.py

                        "type": "enum",
                        "loc": ["path", "model_name"],
                        "msg": "Input should be 'alexnet', 'resnet' or 'lenet'",
                        "input": "foo",
                        "ctx": {"expected": "'alexnet', 'resnet' or 'lenet'"},
                    }
                ]
            }
        ) | IsDict(
            # TODO: remove when deprecating Pydantic v1
            {
                "detail": [
                    {
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Sep 28 04:14:40 UTC 2023
    - 5K bytes
    - Viewed (0)
Back to top