Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for Borg (0.17 sec)

  1. src/bufio/bufio_test.go

    	}
    	if _, err := b.Read(buf); err != nil {
    		t.Fatalf("3rd Read with buffer = %v; want nil", err)
    	}
    	if r.nread != 2 {
    		t.Errorf("num reads = %d; want 2", r.nread)
    	}
    }
    
    // Test for golang.org/issue/5947
    func TestWriterReadFromWhileFull(t *testing.T) {
    	buf := new(bytes.Buffer)
    	w := NewWriterSize(buf, 10)
    
    	// Fill buffer exactly.
    	n, err := w.Write([]byte("0123456789"))
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Feb 10 18:56:01 GMT 2023
    - 51.5K bytes
    - Viewed (0)
  2. src/archive/zip/reader_test.go

    	Name     string
    	Source   func() (r io.ReaderAt, size int64) // if non-nil, used instead of testdata/<Name> file
    	Comment  string
    	File     []ZipTestFile
    	Obscured bool  // needed for Apple notarization (golang.org/issue/34986)
    	Error    error // the error that Opening this file should return
    }
    
    type ZipTestFile struct {
    	Name     string
    	Mode     fs.FileMode
    	NonUTF8  bool
    	ModTime  time.Time
    	Modified time.Time
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 55.3K bytes
    - Viewed (0)
  3. src/bytes/bytes_test.go

    			switch v := r.(type) {
    			case error:
    				err = v
    			default:
    				err = fmt.Errorf("%s", v)
    			}
    		}
    	}()
    
    	Repeat(b, count)
    
    	return
    }
    
    // See Issue golang.org/issue/16237
    func TestRepeatCatchesOverflow(t *testing.T) {
    	tests := [...]struct {
    		s      string
    		count  int
    		errStr string
    	}{
    		0: {"--", -2147483647, "negative"},
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jan 24 16:07:25 GMT 2024
    - 56.2K bytes
    - Viewed (0)
  4. src/cmd/cgo/gcc.go

    			fatalf("reading DWARF entry: %s", err)
    		}
    		if e == nil {
    			break
    		}
    		switch e.Tag {
    		case dwarf.TagVariable:
    			name, _ := e.Val(dwarf.AttrName).(string)
    			// As of https://reviews.llvm.org/D123534, clang
    			// now emits DW_TAG_variable DIEs that have
    			// no name (so as to be able to describe the
    			// type and source locations of constant strings)
    			// like the second arg in the call below:
    			//
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Nov 02 16:43:23 GMT 2023
    - 97K bytes
    - Viewed (0)
Back to top