Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1081 - 1090 of 1,225 for equalTo (0.04 sec)

  1. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Request.kt

              body != null -> "POST"
              else -> "GET"
            },
            body,
          ),
      )
    
      init {
        val connectionHeader = headers["Connection"]
        require(body == null || !"upgrade".equals(connectionHeader, ignoreCase = true)) {
          "expected a null request body with 'Connection: upgrade'"
        }
      }
    
      fun header(name: String): String? = headers[name]
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 16 09:39:51 UTC 2025
    - 13.1K bytes
    - Viewed (1)
  2. android/guava-testlib/test/com/google/common/testing/FreshValueGeneratorTest.java

        FreshValueGenerator generator = new FreshValueGenerator();
        String[] a1 = generator.generateFresh(String[].class);
        String[] a2 = generator.generateFresh(String[].class);
        assertFalse(a1[0].equals(a2[0]));
      }
    
      public void testPrimitiveArray() {
        FreshValueGenerator generator = new FreshValueGenerator();
        int[] a1 = generator.generateFresh(int[].class);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 17.3K bytes
    - Viewed (0)
  3. src/test/java/jcifs/config/BaseConfigurationTest.java

            BaseConfiguration customConfig = new BaseConfiguration(false) {
                @Override
                protected Integer doGetBatchLimit(String cmd) {
                    if ("CustomCommand".equals(cmd)) {
                        return 5;
                    }
                    return null;
                }
            };
    
            assertEquals(5, customConfig.getBatchLimit("CustomCommand"));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 20.6K bytes
    - Viewed (0)
  4. fess-crawler/src/test/java/org/codelibs/fess/crawler/transformer/impl/AbstractTransformerTest.java

                            for (int j = 0; j < operationsPerThread; j++) {
                                // Read name
                                String name = testTransformer.getName();
                                if (!"concurrentName".equals(name)) {
                                    errorCount.incrementAndGet();
                                }
    
                                // Occasionally change name (10% of threads)
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sat Sep 06 04:15:37 UTC 2025
    - 20.8K bytes
    - Viewed (0)
  5. src/builtin/builtin.go

    // argument, not a pointer to it. The specification of the result depends on
    // the type:
    //
    //   - Slice: The size specifies the length. The capacity of the slice is
    //     equal to its length. A second integer argument may be provided to
    //     specify a different capacity; it must be no smaller than the
    //     length. For example, make([]int, 0, 10) allocates an underlying array
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Mon Dec 30 23:59:23 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/SmbTransportImpl.java

            return (this.tconHostName == null || hostName.equalsIgnoreCase(this.tconHostName)) && addr.equals(this.address)
                    && (prt == 0 || prt == this.port ||
                    /* port 139 is ok if 445 was requested */
                            prt == 445 && this.port == 139)
                    && (laddr == this.localAddr || laddr != null && laddr.equals(this.localAddr)) && lprt == this.localPort;
        }
    
        void ssn139() throws IOException {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 69.8K bytes
    - Viewed (0)
  7. cmd/erasure.go

    		t := time.NewTicker(updateTime)
    		defer t.Stop()
    		defer saverWg.Done()
    		var lastSave time.Time
    
    		for {
    			select {
    			case <-t.C:
    				if cache.Info.LastUpdate.Equal(lastSave) {
    					continue
    				}
    				scannerLogOnceIf(ctx, cache.save(ctx, er, dataUsageCacheName), "nsscanner-cache-update")
    				updates <- cache.clone()
    
    				lastSave = cache.Info.LastUpdate
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 16.1K bytes
    - Viewed (0)
  8. cmd/erasure-object_test.go

    	}
    	output := bytes.NewBuffer([]byte{})
    	_, err = io.Copy(output, gr)
    	if err != nil {
    		t.Fatalf("Expected GetObject reading data to succeed, but failed with %v", err)
    	}
    	gr.Close()
    	if !bytes.Equal(output.Bytes(), smallData) {
    		t.Fatalf("Corrupted data is found")
    	}
    
    	// Test: Upload a file bigger than the small file threshold
    	// under the same bucket & key name and try to read it again.
    
    	output.Reset()
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 38.3K bytes
    - Viewed (0)
  9. src/archive/tar/reader_test.go

    			"25 GNU.sparse.offset=1,2\n25 GNU.sparse.numbytes=2\n",
    			nil, false},
    	}
    
    	for i, v := range vectors {
    		r := strings.NewReader(v.in)
    		got, err := parsePAX(r)
    		if !maps.Equal(got, v.want) && !(len(got) == 0 && len(v.want) == 0) {
    			t.Errorf("test %d, parsePAX():\ngot  %v\nwant %v", i, got, v.want)
    		}
    		if ok := err == nil; ok != v.ok {
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Thu Oct 03 15:48:09 UTC 2024
    - 46.9K bytes
    - Viewed (0)
  10. src/archive/tar/writer_test.go

    				}
    			}
    
    			if v.file != "" {
    				want, err := os.ReadFile(v.file)
    				if err != nil {
    					t.Fatalf("ReadFile() = %v, want nil", err)
    				}
    				got := buf.Bytes()
    				if !bytes.Equal(want, got) {
    					t.Fatalf("incorrect result: (-got +want)\n%v", bytediff(got, want))
    				}
    			}
    		})
    	}
    }
    
    func TestPax(t *testing.T) {
    	// Create an archive with a large name
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Mon Feb 03 16:38:43 UTC 2025
    - 39.8K bytes
    - Viewed (0)
Back to top