Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestReadData (0.14 sec)

  1. src/internal/saferio/io_test.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package saferio
    
    import (
    	"bytes"
    	"io"
    	"testing"
    )
    
    func TestReadData(t *testing.T) {
    	const count = 100
    	input := bytes.Repeat([]byte{'a'}, count)
    
    	t.Run("small", func(t *testing.T) {
    		got, err := ReadData(bytes.NewReader(input), count)
    		if err != nil {
    			t.Fatal(err)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 31 00:34:05 UTC 2023
    - 3.1K bytes
    - Viewed (0)
Back to top