Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 244 for readelf (0.19 sec)

  1. src/io/multi_test.go

    func TestMultiReaderCopy(t *testing.T) {
    	slice := []Reader{strings.NewReader("hello world")}
    	r := MultiReader(slice...)
    	slice[0] = nil
    	data, err := ReadAll(r)
    	if err != nil || string(data) != "hello world" {
    		t.Errorf("ReadAll() = %q, %v, want %q, nil", data, err, "hello world")
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 06 15:49:32 UTC 2022
    - 10K bytes
    - Viewed (0)
  2. cmd/local-locker_test.go

    			continue
    		}
    		t.Run(fmt.Sprintf("%d-locks", locks), func(t *testing.T) {
    			// Number of readers per lock...
    			for _, readers := range []int{1, 10, 100} {
    				if locks > 1000 && readers > 1 {
    					continue
    				}
    				if testing.Short() && readers > 10 {
    					continue
    				}
    				t.Run(fmt.Sprintf("%d-read", readers), func(t *testing.T) {
    					l := newLocker()
    					for i := 0; i < locks; i++ {
    						var tmp [16]byte
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sun Mar 05 04:57:35 UTC 2023
    - 11.8K bytes
    - Viewed (0)
  3. cmd/metacache-stream_test.go

    		t.Fatal(err)
    	}
    }
    
    func Test_metacacheReader_readAll(t *testing.T) {
    	r := loadMetacacheSample(t)
    	defer r.Close()
    	var readErr error
    	objs := make(chan metaCacheEntry, 1)
    	var wg sync.WaitGroup
    	wg.Add(1)
    	go func() {
    		readErr = r.readAll(context.Background(), objs)
    		wg.Done()
    	}()
    	want := loadMetacacheSampleNames
    	i := 0
    	for entry := range objs {
    		if entry.name != want[i] {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Sep 19 18:05:16 UTC 2022
    - 15K bytes
    - Viewed (0)
  4. src/internal/zstd/block.go

    		}
    		return off, nil
    	}
    	panic("unreachable")
    }
    
    // execSeqs reads and executes the sequences. RFC 3.1.1.3.2.1.2.
    func (r *Reader) execSeqs(data block, off int, litbuf []byte, seqCount int) error {
    	// Set up the initial states for the sequence code readers.
    
    	rbr, err := r.makeReverseBitReader(data, len(data)-1, off)
    	if err != nil {
    		return err
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 28 17:57:43 UTC 2023
    - 10.2K bytes
    - Viewed (0)
  5. src/cmd/go/internal/modindex/build_read.go

    // findEmbed advances the input reader to the next //go:embed comment.
    // It reports whether it found a comment.
    // (Otherwise it found an error or EOF.)
    func (r *importReader) findEmbed(first bool) bool {
    	// The import block scan stopped after a non-space character,
    	// so the reader is not at the start of a line on the first call.
    	// After that, each //go:embed extraction leaves the reader
    	// at the end of a line.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 23 10:10:21 UTC 2023
    - 13K bytes
    - Viewed (0)
  6. src/encoding/csv/reader_test.go

    					t.Fatalf("unexpected Readall() error: %v", err)
    				}
    				if !reflect.DeepEqual(out, tt.Output) {
    					t.Fatalf("ReadAll() output:\ngot  %q\nwant %q", out, tt.Output)
    				}
    			}
    
    			// Check input offset after call ReadAll()
    			inputByteSize := len(input)
    			inputOffset := r.InputOffset()
    			if err == nil && int64(inputByteSize) != inputOffset {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 14 04:25:13 UTC 2022
    - 19.1K bytes
    - Viewed (0)
  7. src/encoding/base64/base64_test.go

    	dec := NewDecoder(StdEncoding, strings.NewReader(encoded))
    	res1, err := io.ReadAll(dec)
    	if err != nil {
    		t.Errorf("ReadAll failed: %v", err)
    	}
    
    	dec = NewDecoder(StdEncoding, strings.NewReader(encodedShort))
    	var res2 []byte
    	res2, err = io.ReadAll(dec)
    	if err != nil {
    		t.Errorf("ReadAll failed: %v", err)
    	}
    
    	if !bytes.Equal(res1, res2) {
    		t.Error("Decoded results not equal")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Sep 03 18:57:29 UTC 2023
    - 15.9K bytes
    - Viewed (0)
  8. src/net/http/clientserver_test.go

    	h12requestContentLength(t, func() io.Reader { return strings.NewReader("FOUR") }, 4)
    }
    
    func TestH12_RequestContentLength_Known_Zero(t *testing.T) {
    	h12requestContentLength(t, func() io.Reader { return nil }, 0)
    }
    
    func TestH12_RequestContentLength_Unknown(t *testing.T) {
    	h12requestContentLength(t, func() io.Reader { return struct{ io.Reader }{strings.NewReader("Stuff")} }, -1)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 46.6K bytes
    - Viewed (0)
  9. internal/rest/client.go

    			logger.LogOnceIf(ctx, logSubsys, err, c.url.Host)
    			c.MarkOffline(err)
    		}
    		defer xhttp.DrainBody(resp.Body)
    		// Limit the ReadAll(), just in case, because of a bug, the server responds with large data.
    		b, err := io.ReadAll(io.LimitReader(resp.Body, c.MaxErrResponseSize))
    		if err != nil {
    			if xnet.IsNetworkOrHostDown(err, expectTimeouts) {
    				if !c.NoMetrics {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  10. platforms/core-runtime/internal-instrumentation-processor/src/main/java/org/gradle/internal/instrumentation/processor/AbstractInstrumentationProcessor.java

            for (ExecutableElement methodElement : allMethodElementsInAnnotatedClasses) {
                for (AnnotatedMethodReaderExtension reader : readers) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 13:09:40 UTC 2024
    - 10.3K bytes
    - Viewed (0)
Back to top