Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for didn (0.17 sec)

  1. src/bytes/buffer_test.go

    	buf2.ReadFrom(panicReader{panic: true})
    }
    
    func TestReadFromNegativeReader(t *testing.T) {
    	var b Buffer
    	defer func() {
    		switch err := recover().(type) {
    		case nil:
    			t.Fatal("bytes.Buffer.ReadFrom didn't panic")
    		case error:
    			// this is the error string of errNegativeRead
    			wantError := "bytes.Buffer: reader returned negative count from Read"
    			if err.Error() != wantError {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Apr 26 13:31:36 GMT 2024
    - 18.6K bytes
    - Viewed (0)
  2. src/bytes/bytes_test.go

    			}
    		}
    		if len(a) > 0 {
    			in, out := a[0], s
    			if cap(in) == cap(out) && &in[:1][0] == &out[:1][0] {
    				t.Errorf("Join(%#v, %q) didn't copy", a, tt.sep)
    			}
    		}
    	}
    }
    
    var splitaftertests = []SplitTest{
    	{abcd, "a", -1, []string{"a", "bcd"}},
    	{abcd, "z", -1, []string{"abcd"}},
    	{abcd, "", -1, []string{"a", "b", "c", "d"}},
    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)
  3. src/archive/zip/zip_test.go

    	}
    	if got, want := fh2.ModifiedDate, fh.ModifiedDate; got != want {
    		t.Errorf("ModifiedDate: got %d, want %d\n", got, want)
    	}
    
    	if sysfh, ok := fi.Sys().(*FileHeader); !ok && sysfh != fh {
    		t.Errorf("Sys didn't return original *FileHeader")
    	}
    }
    
    func TestFileHeaderRoundTrip(t *testing.T) {
    	fh := &FileHeader{
    		Name:             "foo.txt",
    		UncompressedSize: 987654321,
    		ModifiedTime:     1234,
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 19.5K bytes
    - Viewed (0)
  4. .github/ISSUE_TEMPLATE/01-pkgsite.yml

      - type: textarea
        id: what-did-you-do
        attributes:
          label: "What did you do?"
          description: "If possible, provide a recipe for reproducing the error. Starting with a Private/Incognito tab/window may help rule out problematic browser extensions."
        validations:
          required: true
      - type: textarea
        id: actual-behavior
        attributes:
          label: "What did you see happen?"
        validations:
    Others
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Thu Jan 04 23:31:17 GMT 2024
    - 1.4K bytes
    - Viewed (0)
  5. src/archive/tar/tar_test.go

    		}
    		if got, want := h2.ModTime, v.h.ModTime; got != want {
    			t.Errorf("i=%d: ModTime: got %v, want %v", i, got, want)
    		}
    		if sysh, ok := fi.Sys().(*Header); !ok || sysh != v.h {
    			t.Errorf("i=%d: Sys didn't return original *Header", i)
    		}
    	}
    }
    
    func TestHeaderAllowedFormats(t *testing.T) {
    	vectors := []struct {
    		header  *Header           // Input header
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 15 16:01:50 GMT 2024
    - 24K bytes
    - Viewed (0)
  6. lib/time/mkzip.go

    		seen[name] = true
    		return nil
    	})
    	if err != nil {
    		log.Fatal(err)
    	}
    	if err := zw.Close(); err != nil {
    		log.Fatal(err)
    	}
    	if len(seen) == 0 {
    		log.Fatalf("did not find any files to add")
    	}
    	if !seen["US/Eastern"] {
    		log.Fatalf("did not find US/Eastern to add")
    	}
    	if err := os.WriteFile(args[0], zb.Bytes(), 0666); err != nil {
    		log.Fatal(err)
    	}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Mar 04 17:32:07 GMT 2024
    - 2.1K bytes
    - Viewed (0)
  7. .github/ISSUE_TEMPLATE/04-vuln.yml

      - type: textarea
        id: what-did-you-do
        attributes:
          label: "What did you do?"
          description: "If possible, provide a recipe for reproducing the error. A complete runnable program is good. A link on [go.dev/play](https://go.dev/play) is best."
        validations:
          required: true
      - type: textarea
        id: actual-behavior
        attributes:
          label: "What did you see happen?"
        validations:
    Others
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Thu Jan 04 23:31:17 GMT 2024
    - 1.9K bytes
    - Viewed (0)
  8. doc/next/6-stdlib/1-time.md

    [time.Timer] and [time.Ticker].
    
    First, `Timer`s and `Ticker`s that are no longer referred to by the program
    become eligible for garbage collection immediately, even if their
    `Stop` methods have not been called.
    Earlier versions of Go did not collect unstopped `Timer`s until after
    they had fired and never collected unstopped `Ticker`s.
    
    Second, the timer channel associated with a `Timer` or `Ticker` is
    now unbuffered, with capacity 0.
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Fri Apr 12 20:57:18 GMT 2024
    - 1.5K bytes
    - Viewed (0)
  9. src/archive/tar/reader.go

    	case major == "1" && minor == "0":
    		is1x0 = true
    	case major != "" || minor != "":
    		return nil, nil // Unknown GNU sparse PAX version
    	case hdr.PAXRecords[paxGNUSparseMap] != "":
    		is1x0 = false // 0.0 and 0.1 did not have explicit version records, so guess
    	default:
    		return nil, nil // Not a PAX format GNU sparse file.
    	}
    	hdr.Format.mayOnlyBe(FormatPAX)
    
    	// Update hdr from GNU sparse PAX headers.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 08 01:59:14 GMT 2024
    - 26.8K bytes
    - Viewed (0)
  10. src/archive/tar/writer_test.go

    	// Test that we can get the xattrs back out of the archive.
    	reader := NewReader(&buf)
    	hdr, err = reader.Next()
    	if err != nil {
    		t.Fatal(err)
    	}
    	if !reflect.DeepEqual(hdr.Xattrs, xattrs) {
    		t.Fatalf("xattrs did not survive round trip: got %+v, want %+v",
    			hdr.Xattrs, xattrs)
    	}
    }
    
    func TestPaxHeadersSorted(t *testing.T) {
    	fileinfo, err := os.Stat("testdata/small.txt")
    	if err != nil {
    		t.Fatal(err)
    	}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Feb 27 16:39:23 GMT 2024
    - 38.7K bytes
    - Viewed (0)
Back to top