- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for readNames (0.05 sec)
-
cmd/metacache-stream_test.go
defer r.Close() names, err := r.readNames(-1) if err != io.EOF { t.Fatal(err) } want := loadMetacacheSampleNames if !reflect.DeepEqual(names, want) { t.Errorf("got unexpected result: %#v", names) } } func Test_metacacheReader_skip(t *testing.T) { r := loadMetacacheSample(t) defer r.Close() names, err := r.readNames(5) if err != nil { t.Fatal(err) }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Sep 19 18:05:16 UTC 2022 - 15K bytes - Viewed (0) -
cmd/metacache-stream.go
} r.err = err return err } // Send it! if !fn(meta) { return nil } } } // readNames will return all the requested number of names in order // or all if n < 0. // Will return io.EOF if end of stream is reached. func (r *metacacheReader) readNames(n int) ([]string, error) { r.checkInit() if r.err != nil { return nil, r.err } if n == 0 { return nil, nil }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Apr 04 12:04:40 UTC 2024 - 19.5K bytes - Viewed (0) -
build-logic/documentation/src/main/groovy/gradlebuild/docs/GradleUserManualPlugin.java
attributes.put("snippetsPath", "snippets"); // Make sure the 'raw' location of the samples is available in all AsciidoctorTasks to access files with expected outputs in the 'tests' folder for inclusion in READMEs attributes.put("samplesPath", extension.getUserManual().getStagingRoot().dir("raw/samples").get().getAsFile()); task.attributes(attributes); });
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Fri Mar 01 05:46:51 UTC 2024 - 17.7K bytes - Viewed (0)