Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for readNames (0.21 sec)

  1. cmd/metacache-stream_test.go

    	defer r.Close()
    	entries, err := r.readN(-1, false, true, false, "")
    	if err != io.EOF {
    		t.Fatal(err)
    	}
    
    	return entries
    }
    
    func Test_metacacheReader_readNames(t *testing.T) {
    	r := loadMetacacheSample(t)
    	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)
    	}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Sep 19 18:05:16 GMT 2022
    - 15K bytes
    - Viewed (0)
  2. 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
    	}
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 19.5K bytes
    - Viewed (0)
  3. 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);
            });
    
    Java
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Fri Mar 01 05:46:51 GMT 2024
    - 17.7K bytes
    - Viewed (0)
Back to top