Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for TestOption (0.05 sec)

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

    import org.jspecify.annotations.NullUnmarked;
    
    /**
     * Options controlling the behavior of sources/sinks/streams for testing.
     *
     * @author Colin Decker
     */
    @NullUnmarked
    public enum TestOption {
      OPEN_THROWS,
      SKIP_THROWS,
      READ_THROWS,
      WRITE_THROWS,
      CLOSE_THROWS,
      AVAILABLE_ALWAYS_ZERO
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 931 bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/io/TestOption.java

    import org.jspecify.annotations.NullUnmarked;
    
    /**
     * Options controlling the behavior of sources/sinks/streams for testing.
     *
     * @author Colin Decker
     */
    @NullUnmarked
    public enum TestOption {
      OPEN_THROWS,
      SKIP_THROWS,
      READ_THROWS,
      WRITE_THROWS,
      CLOSE_THROWS,
      AVAILABLE_ALWAYS_ZERO
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 931 bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/io/CharSinkTest.java

    package com.google.common.io;
    
    import static com.google.common.base.StandardSystemProperty.LINE_SEPARATOR;
    import static com.google.common.io.TestOption.CLOSE_THROWS;
    import static com.google.common.io.TestOption.OPEN_THROWS;
    import static com.google.common.io.TestOption.READ_THROWS;
    import static com.google.common.io.TestOption.WRITE_THROWS;
    import static org.junit.Assert.assertThrows;
    
    import com.google.common.collect.ImmutableList;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/io/ByteSinkTest.java

     * limitations under the License.
     */
    
    package com.google.common.io;
    
    import static com.google.common.io.TestOption.CLOSE_THROWS;
    import static com.google.common.io.TestOption.OPEN_THROWS;
    import static com.google.common.io.TestOption.READ_THROWS;
    import static com.google.common.io.TestOption.WRITE_THROWS;
    import static org.junit.Assert.assertArrayEquals;
    import static org.junit.Assert.assertThrows;
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/io/ByteSinkTest.java

     * limitations under the License.
     */
    
    package com.google.common.io;
    
    import static com.google.common.io.TestOption.CLOSE_THROWS;
    import static com.google.common.io.TestOption.OPEN_THROWS;
    import static com.google.common.io.TestOption.READ_THROWS;
    import static com.google.common.io.TestOption.WRITE_THROWS;
    import static org.junit.Assert.assertArrayEquals;
    import static org.junit.Assert.assertThrows;
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/io/TestByteSink.java

      private final ByteArrayOutputStream bytes = new ByteArrayOutputStream();
      private final ImmutableSet<TestOption> options;
    
      private boolean outputStreamOpened;
      private boolean outputStreamClosed;
    
      public TestByteSink(TestOption... options) {
        this.options = ImmutableSet.copyOf(options);
      }
    
      byte[] getBytes() {
        return bytes.toByteArray();
      }
    
      @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Jul 14 14:44:08 UTC 2025
    - 1.9K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/io/TestCharSource.java

     *
     * @author Colin Decker
     */
    @NullUnmarked
    public class TestCharSource extends CharSource implements TestStreamSupplier {
    
      private final TestByteSource byteSource;
    
      public TestCharSource(String content, TestOption... options) {
        this.byteSource = new TestByteSource(content.getBytes(UTF_8), options);
      }
    
      @Override
      public boolean wasStreamOpened() {
        return byteSource.wasStreamOpened();
      }
    
      @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/io/TestCharSink.java

     *
     * @author Colin Decker
     */
    @NullUnmarked
    public class TestCharSink extends CharSink implements TestStreamSupplier {
    
      private final TestByteSink byteSink;
    
      public TestCharSink(TestOption... options) {
        this.byteSink = new TestByteSink(options);
      }
    
      public String getString() {
        return new String(byteSink.getBytes(), UTF_8);
      }
    
      @Override
      public boolean wasStreamOpened() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/io/TestByteSource.java

    @NullUnmarked
    public final class TestByteSource extends ByteSource implements TestStreamSupplier {
    
      private final byte[] bytes;
      private final ImmutableSet<TestOption> options;
    
      private boolean inputStreamOpened;
      private boolean inputStreamClosed;
    
      TestByteSource(byte[] bytes, TestOption... options) {
        this.bytes = checkNotNull(bytes);
        this.options = ImmutableSet.copyOf(options);
      }
    
      @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Jul 14 14:44:08 UTC 2025
    - 2K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/io/TestByteSource.java

    @NullUnmarked
    public final class TestByteSource extends ByteSource implements TestStreamSupplier {
    
      private final byte[] bytes;
      private final ImmutableSet<TestOption> options;
    
      private boolean inputStreamOpened;
      private boolean inputStreamClosed;
    
      TestByteSource(byte[] bytes, TestOption... options) {
        this.bytes = checkNotNull(bytes);
        this.options = ImmutableSet.copyOf(options);
      }
    
      @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Jul 14 14:44:08 UTC 2025
    - 2K bytes
    - Viewed (0)
Back to top