Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 178 for Peeker (0.18 sec)

  1. src/strings/reader_test.go

    	}
    
    	for i, tt := range tests {
    		pos, err := r.Seek(tt.off, tt.seek)
    		if err == nil && tt.seekerr != "" {
    			t.Errorf("%d. want seek error %q", i, tt.seekerr)
    			continue
    		}
    		if err != nil && err.Error() != tt.seekerr {
    			t.Errorf("%d. seek error = %q; want %q", i, err.Error(), tt.seekerr)
    			continue
    		}
    		if tt.wantpos != 0 && tt.wantpos != pos {
    			t.Errorf("%d. pos = %d, want %d", i, pos, tt.wantpos)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 5.9K bytes
    - Viewed (0)
  2. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r70/TestDisplayNameJUnit5CrossVersionSpec.groovy

                                    test("throwsExceptionWhenPeeked()") {
                                        operationDisplayName "throws EmptyStackException when peeked"
                                        testDisplayName "throws EmptyStackException when peeked"
                                    }
                                    test("throwsExceptionWhenPopped()") {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 18.3K bytes
    - Viewed (0)
  3. src/io/io.go

    type ReadSeeker interface {
    	Reader
    	Seeker
    }
    
    // ReadSeekCloser is the interface that groups the basic Read, Seek and Close
    // methods.
    type ReadSeekCloser interface {
    	Reader
    	Seeker
    	Closer
    }
    
    // WriteSeeker is the interface that groups the basic Write and Seek methods.
    type WriteSeeker interface {
    	Writer
    	Seeker
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 17:34:10 UTC 2024
    - 21.6K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/-ResponseCommon.kt

    ): String? = headers[name] ?: defaultValue
    
    @Throws(IOException::class)
    fun Response.commonPeekBody(byteCount: Long): ResponseBody {
      val peeked = body.source().peek()
      val buffer = Buffer()
      peeked.request(byteCount)
      buffer.write(peeked, minOf(byteCount, peeked.buffer.size))
      return buffer.asResponseBody(body.contentType(), buffer.size)
    }
    
    fun Response.commonNewBuilder(): Response.Builder = Response.Builder(this)
    
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Apr 15 13:24:48 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  5. test/typeparam/issue44688.go

    	var b1 B1[T]
    	b1.A1 = &A1[T]{}
    	b1.A2 = &ImpA2[T]{}
    
    	b1.A1.m1(arg)
    	b1.m1(arg)
    
    	b1.A2.m2(arg)
    	b1.m2(arg)
    
    	var b2 B2[T]
    	b2 = &ImpA2[T]{}
    	b2.m2(arg)
    
    	// a deeper nesting
    	var d D[T]
    	d.C.B1.A1 = &A1[T]{}
    	d.C.B1.A2 = &ImpA2[T]{}
    	d.m1(arg)
    	d.m2(arg)
    
    	// calling method expressions
    	m1x := B1[T].m1
    	m1x(b1, arg)
    	// TODO(khr): reenable these.
    	//m2x := B2[T].m2
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 1.9K bytes
    - Viewed (0)
  6. src/net/sendfile_unix_alt.go

    			return 0, nil, true
    		}
    	}
    	// r might be an *os.File or an os.fileWithoutWriteTo.
    	// Type assert to an interface rather than *os.File directly to handle the latter case.
    	f, ok := r.(interface {
    		fs.File
    		io.Seeker
    		syscall.Conn
    	})
    	if !ok {
    		return 0, nil, false
    	}
    
    	if remain == 0 {
    		fi, err := f.Stat()
    		if err != nil {
    			return 0, err, false
    		}
    
    		remain = fi.Size()
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 26 18:12:56 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  7. guava/src/com/google/common/io/FileWriteMode.java

    import com.google.common.annotations.J2ktIncompatible;
    
    /**
     * Modes for opening a file for writing. The default when mode when none is specified is to truncate
     * the file before writing.
     *
     * @author Colin Decker
     */
    @J2ktIncompatible
    @GwtIncompatible
    @ElementTypesAreNonnullByDefault
    public enum FileWriteMode {
      /** Specifies that writes to the opened file should append to the end of the file. */
      APPEND
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 28 20:13:02 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/io/TestCharSource.java

    import java.io.IOException;
    import java.io.InputStreamReader;
    import java.io.Reader;
    
    /**
     * A char source for testing that has configurable options.
     *
     * @author Colin Decker
     */
    public class TestCharSource extends CharSource implements TestStreamSupplier {
    
      private final TestByteSource byteSource;
    
      public TestCharSource(String content, TestOption... options) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Apr 21 02:27:51 UTC 2017
    - 1.4K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/collect/testing/google/GoogleHelpers.java

    import com.google.common.annotations.GwtCompatible;
    import com.google.common.collect.Multimap;
    
    /**
     * Helper methods/assertions for use with {@code com.google.common.collect} types.
     *
     * @author Colin Decker
     */
    @GwtCompatible
    final class GoogleHelpers {
    
      private GoogleHelpers() {}
    
      static void assertEmpty(Multimap<?, ?> multimap) {
        if (!multimap.isEmpty()) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 23 04:28:13 UTC 2015
    - 1.1K bytes
    - Viewed (0)
  10. pkg/queue/delay_test.go

    	for _, task := range unsorted {
    		heap.Push(pq, task)
    	}
    
    	// dequeue should be in order
    	for i, task := range sorted {
    		peeked := pq.Peek()
    		popped := heap.Pop(pq)
    		if task != popped {
    			t.Fatalf("pop %d was not in order", i)
    		}
    		if peeked != popped {
    			t.Fatalf("did not peek at the next item to be popped")
    		}
    	}
    }
    
    func TestDelayQueueOrdering(t *testing.T) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jul 20 06:27:31 UTC 2023
    - 4.3K bytes
    - Viewed (0)
Back to top