- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for TestReadData (0.14 sec)
-
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)