Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for mustContainData (0.46 sec)

  1. src/os/readfrom_linux_test.go

    	go func() {
    		client.Write(data)
    		client.Close()
    		close(done)
    	}()
    
    	return dst, server, data, hook, func() { <-done }
    }
    
    // mustContainData ensures that the specified file contains exactly the
    // specified data.
    func mustContainData(t *testing.T, f *File, data []byte) {
    	t.Helper()
    
    	got := make([]byte, len(data))
    	if _, err := io.ReadFull(f, got); err != nil {
    		t.Fatal(err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 21:49:26 UTC 2024
    - 20.3K bytes
    - Viewed (0)
Back to top