Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for large_write (0.1 sec)

  1. src/os/os_test.go

    		testDevNullFile(t, "//./nul")
    	}
    }
    
    var testLargeWrite = flag.Bool("large_write", false, "run TestLargeWriteToConsole test that floods console with output")
    
    func TestLargeWriteToConsole(t *testing.T) {
    	if !*testLargeWrite {
    		t.Skip("skipping console-flooding test; enable with -large_write")
    	}
    	b := make([]byte, 32000)
    	for i := range b {
    		b[i] = '.'
    	}
    	b[len(b)-1] = '\n'
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 83.1K bytes
    - Viewed (0)
  2. src/io/io_test.go

    	}
    }
    
    // largeWriter returns an invalid count that is larger than the number
    // of bytes provided (issue 39978).
    type largeWriter struct {
    	err error
    }
    
    func (w largeWriter) Write(p []byte) (int, error) {
    	return len(p) + 1, w.err
    }
    
    func TestCopyLargeWriter(t *testing.T) {
    	want := ErrInvalidWrite
    	rb := new(Buffer)
    	wb := largeWriter{}
    	rb.WriteString("hello, world.")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 09 22:04:41 UTC 2023
    - 18.9K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/internal/cache2/FileOperatorTest.kt

            randomAccessFile!!.getChannel(),
          )
        val buffer = Buffer()
        operator.read(0, buffer, data.size.toLong())
        assertThat(buffer.readByteString()).isEqualTo(data)
      }
    
      @Test
      fun largeWrite() {
        val data = randomByteString(1000000)
        val operator =
          FileOperator(
            randomAccessFile!!.getChannel(),
          )
        val buffer = Buffer().write(data)
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 5.8K bytes
    - Viewed (0)
Back to top