- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 12 for readSize (0.07 sec)
-
src/bufio/bufio_test.go
} line, isPrefix, err := l.ReadLine() if err != io.EOF { t.Errorf("expected EOF from ReadLine, got '%s' %t %s", line, isPrefix, err) } } func TestReadLineNonNilLineOrError(t *testing.T) { r := NewReader(strings.NewReader("line 1\n")) for i := 0; i < 2; i++ { l, _, err := r.ReadLine() if l != nil && err != nil {
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Fri Nov 01 21:52:12 UTC 2024 - 51.6K bytes - Viewed (0) -
cmd/xl-storage_test.go
} } { buf := make([]byte, 5) // Test for negative offset. if _, err = xlStorage.ReadFile(context.Background(), volume, "myobject", -1, buf, v); err == nil { t.Fatalf("expected: error, got: <nil>") } } for l := 0; l < 2; l++ { // Following block validates all ReadFile test cases. for i, testCase := range testCases { var n int64 // Common read buffer.
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Wed Aug 14 17:11:51 UTC 2024 - 66.7K bytes - Viewed (0) -
istioctl/pkg/proxyconfig/proxyconfig.go
debug, err := extractConfigDump(kubeClient, podName, podNamespace, includeEds) if err != nil { return nil, err } return setupConfigdumpEnvoyConfigWriter(debug, out) } func readFile(filename string) ([]byte, error) { file := os.Stdin if filename != "-" { var err error file, err = os.Open(filename) if err != nil { return nil, err } } defer func() {
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Thu Oct 24 15:53:49 UTC 2024 - 50.6K bytes - Viewed (0) -
cmd/bucket-replication-utils_gen.go
if err != nil { err = msgp.WrapError(err, "ResetID") return } case "StartTime": z.StartTime, err = dc.ReadTime() if err != nil { err = msgp.WrapError(err, "StartTime") return } case "EndTime": z.EndTime, err = dc.ReadTime() if err != nil { err = msgp.WrapError(err, "EndTime") return } case "ResyncStatus":
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Mar 21 17:21:35 UTC 2024 - 61.1K bytes - Viewed (0) -
cmd/xl-storage.go
// tries to verify whether the disk has bitrot. // // Additionally ReadFile also starts reading from an offset. ReadFile // semantics are same as io.ReadFull. func (s *xlStorage) ReadFile(ctx context.Context, volume string, path string, offset int64, buffer []byte, verifier *BitrotVerifier) (int64, error) { if offset < 0 { return 0, errInvalidArgument } volumeDir, err := s.getVolDir(volume) if err != nil {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sat Oct 26 09:58:27 UTC 2024 - 91.3K bytes - Viewed (0) -
src/archive/zip/reader_test.go
path = tf } var rc *ReadCloser rc, err = OpenReader(path) if err == nil { defer rc.Close() z = &rc.Reader } var err2 error raw, err2 = os.ReadFile(path) if err2 != nil { t.Errorf("ReadFile(%s) error=%v", path, err2) return } } if err != zt.Error { t.Errorf("error=%v, want %v", err, zt.Error) return } // bail if file is not zip
Registered: Tue Nov 05 11:13:11 UTC 2024 - Last Modified: Thu Jul 25 00:25:45 UTC 2024 - 55.6K bytes - Viewed (0) -
cmd/erasure-healing_test.go
if err != nil { t.Fatal(err) } for _, drive := range fsDirs { dir := path.Join(drive, bucket, object, uuid.String()) _, err := os.ReadFile(pathJoin(dir, "part.1")) if err == nil { t.Fatal("expected data dit to be cleaned up") } } // Remove the bucket - to simulate the case where bucket was // created when the disk was down.
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Jun 10 15:51:27 UTC 2024 - 49K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/cache/DiskLruCacheTest.kt
setUp(parameters.first, parameters.second) val editor = cache.edit("k1")!! editor.setString(0, "ABC") editor.setString(1, "B") editor.commit() val k1 = getCleanFile("k1", 0) assertThat(readFile(k1)).isEqualTo("ABC") cache.remove("k1") assertThat(filesystem.exists(k1)).isFalse() } @ParameterizedTest @ArgumentsSource(FileSystemParamProvider::class)
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Apr 15 14:55:09 UTC 2024 - 75.8K bytes - Viewed (0) -
cmd/bucket-stats_gen.go
err = za0002.DecodeMsg(dc) if err != nil { err = msgp.WrapError(err, "Stats", za0001) return } z.Stats[za0001] = za0002 } case "Timestamp": z.Timestamp, err = dc.ReadTime() if err != nil { err = msgp.WrapError(err, "Timestamp") return } default: err = dc.Skip() if err != nil { err = msgp.WrapError(err) return } }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Feb 06 06:00:45 UTC 2024 - 57.5K bytes - Viewed (0) -
go.sum
github.com/chromedp/sysutil v1.0.0/go.mod h1:kgWmDdq8fTzXYcKIBqIYvRRTnYb9aNS9moAV0xufSww= github.com/chzyer/logex v1.2.1/go.mod h1:JLbx6lG2kDbNRFnfkgvh4eRJRPX1QCoOIWomwysCBrQ= github.com/chzyer/readline v1.5.1/go.mod h1:Eh+b79XXUwfKfcPLepksvw2tcLE/Ct21YObkaSkeBlk= github.com/chzyer/test v1.0.0/go.mod h1:2JlltgoNkt4TW/z9V/IzDdFaMTM2JPIi26O1pF38GC8= github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw=
Registered: Wed Nov 06 22:53:10 UTC 2024 - Last Modified: Wed Nov 06 06:23:25 UTC 2024 - 62.2K bytes - Viewed (0)