Search Options

Results per page
Sort
Preferred Languages
Advance

Results 901 - 910 of 1,297 for expectEq (0.11 sec)

  1. okhttp/src/test/java/okhttp3/internal/ws/RealWebSocketTest.kt

      }
    
      @Test
      fun clientCloseWith0Fails() {
        assertFailsWith<IllegalArgumentException> {
          client.webSocket!!.close(0, null)
        }.also { expected ->
          assertThat("Code must be in range [1000,5000): 0")
            .isEqualTo(expected.message)
        }
      }
    
      @Test
      fun afterSocketClosedPingFailsWebSocket() {
        client2Server.source.close()
        client.webSocket!!.pong("Ping!".encodeUtf8())
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Thu Apr 11 01:59:58 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  2. cmd/endpoint-ellipses.go

    				if uint64(len(p.Seq)) > ss {
    					symmetry = uint64(len(p.Seq))%ss == 0
    				} else {
    					symmetry = ss%uint64(len(p.Seq)) == 0
    				}
    			}
    		}
    		// With no arg patterns, it is expected that user knows
    		// the right symmetry, so either ellipses patterns are
    		// provided (recommended) or no ellipses patterns.
    		if _, ok := newSetCounts[ss]; !ok && (symmetry || argPatterns == nil) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 14 17:11:51 UTC 2024
    - 14.7K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/EnumMultisetTest.java

        assertEquals(3, uniqueEntries.size());
      }
    
      // Wrapper of EnumMultiset factory methods, because we need to skip create(Class).
      // create(Enum1.class) is equal to create(Enum2.class) but testEquals() expects otherwise.
      // For the same reason, we need to skip create(Iterable, Class).
      private static class EnumMultisetFactory {
        @Keep // used reflectively by testEquals
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 15 17:36:06 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  4. docs/debugging/xl-meta/main.go

    					return fmt.Errorf("Block offset mismatch. Expected %d got %d", m.blockOffset, len(combined))
    				}
    				combined = append(combined, m.mapped[:m.size]...)
    				missingAll += missing
    				if lastValid > 0 {
    					lastValidAll = lastValid + m.blockOffset
    				}
    				if m.blocks == block {
    					if len(combined) != m.partSize {
    						fmt.Println("Combined size mismatch. Expected", m.partSize, "got", len(combined))
    					}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 05 11:57:44 UTC 2024
    - 40.3K bytes
    - Viewed (0)
  5. build-logic/documentation/src/test/groovy/gradlebuild/docs/dsl/source/TypeNameResolverTest.groovy

        def resolvesUnqualifiedNameToDefaultPackagesAndClassesInGroovySource() {
            _ * classMetaData.innerClassNames >> []
            _ * classMetaData.imports >> []
            _ * classMetaData.groovy >> true
    
            expect:
            typeNameResolver.resolve('Set', classMetaData) == 'java.util.Set'
            typeNameResolver.resolve('File', classMetaData) == 'java.io.File'
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 6K bytes
    - Viewed (0)
  6. internal/http/listener.go

    		addrs = append(addrs, listener.listeners[i].Addr())
    	}
    
    	return addrs
    }
    
    // TCPOptions specify customizable TCP optimizations on raw socket
    type TCPOptions struct {
    	UserTimeout int // this value is expected to be in milliseconds
    
    	// When the net.Conn is a remote drive this value is honored, we close the connection to remote peer proactively.
    	DriveOPTimeout func() time.Duration
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jul 23 10:53:03 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/internal/idn/IdnaMappingTableTest.kt

    import kotlin.test.assertFailsWith
    import okio.Buffer
    import okio.FileSystem
    import okio.Path.Companion.toPath
    import org.junit.jupiter.api.BeforeEach
    import org.junit.jupiter.api.Test
    
    /** Confirm we get the expected table whether we build it from the .txt file or compact that. */
    class IdnaMappingTableTest {
      private lateinit var table: SimpleIdnaMappingTable
      private lateinit var compactTable: IdnaMappingTable
    
      @BeforeEach
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/primitives/CharsTest.java

        char[] sharedArray = new char[arraysDim2];
        Arrays.fill(arrays, sharedArray);
    
        try {
          Chars.concat(arrays);
          fail();
        } catch (IllegalArgumentException expected) {
        }
      }
    
      @GwtIncompatible // Chars.fromByteArray
      public void testFromByteArray() {
        assertThat(Chars.fromByteArray(new byte[] {0x23, 0x45, (byte) 0xDC})).isEqualTo('\u2345');
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 25.6K bytes
    - Viewed (0)
  9. cmd/xl-storage-format-v2_test.go

    	if err != nil {
    		t.Fatal(err)
    	}
    
    	buf, err := io.ReadAll(gz)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	_, err = readXLMetaNoData(bytes.NewReader(buf), int64(len(buf)))
    	if err == nil {
    		t.Fatal("expected error but returned success")
    	}
    }
    
    func TestXLV2FormatData(t *testing.T) {
    	failOnErr := func(err error) {
    		t.Helper()
    		if err != nil {
    			t.Fatal(err)
    		}
    	}
    	data := []byte("some object data")
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Mar 08 17:50:48 UTC 2024
    - 36.4K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/AbstractTableTest.java

      protected @NonNull C cellValue(Character character) {
        return (C) character;
      }
    
      // Only safe wrt. ClassCastException. Not null-safe (can be used to test expected Table NPEs)
      @SuppressWarnings("unchecked")
      protected C nullableCellValue(@Nullable Character character) {
        return (C) character;
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 15 17:36:06 UTC 2024
    - 5.8K bytes
    - Viewed (0)
Back to top