Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TestReadWrite (0.24 sec)

  1. src/cmd/internal/goobj/objfile_test.go

    	"cmd/internal/bio"
    	"cmd/internal/objabi"
    )
    
    func dummyWriter(buf *bytes.Buffer) *Writer {
    	wr := &bio.Writer{Writer: bufio.NewWriter(buf)} // hacky: no file, so cannot seek
    	return NewWriter(wr)
    }
    
    func TestReadWrite(t *testing.T) {
    	// Test that we get the same data in a write-read roundtrip.
    
    	// Write a symbol, a relocation, and an aux info.
    	var buf bytes.Buffer
    	w := dummyWriter(&buf)
    
    	var s Sym
    	s.SetABI(1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 15 20:22:12 UTC 2022
    - 3K bytes
    - Viewed (0)
  2. src/test/java/jcifs/tests/RandomAccessFileTest.java

                    assertEquals(newLength, f.length());
                }
                finally {
                    f.delete();
                }
            }
        }
    
    
        @Test
        public void testReadWrite () throws IOException {
            try ( SmbFile f = createTestFile() ) {
                try {
                    int bufSize = 4096;
                    long l = 1024;
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 11.4K bytes
    - Viewed (0)
Back to top