Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 434 for picard (0.59 sec)

  1. src/image/gif/writer_test.go

    		Delay: make([]int, 1),
    	}
    	if err := EncodeAll(io.Discard, g0); err == nil {
    		t.Error("expected error from mismatched delay and image slice lengths")
    	}
    
    	g1 := &GIF{
    		Image:    images,
    		Delay:    make([]int, len(images)),
    		Disposal: make([]byte, 1),
    	}
    	for i := range g1.Disposal {
    		g1.Disposal[i] = DisposalNone
    	}
    	if err := EncodeAll(io.Discard, g1); err == nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 03 14:56:25 UTC 2024
    - 19K bytes
    - Viewed (0)
  2. logger/logger.go

    	Error(context.Context, string, ...interface{})
    	Trace(ctx context.Context, begin time.Time, fc func() (sql string, rowsAffected int64), err error)
    }
    
    var (
    	// Discard logger will print any log to io.Discard
    	Discard = New(log.New(io.Discard, "", log.LstdFlags), Config{})
    	// Default Default logger
    	Default = New(log.New(os.Stdout, "\r\n", log.LstdFlags), Config{
    		SlowThreshold:             200 * time.Millisecond,
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Tue Nov 07 02:19:41 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  3. src/html/template/clone_test.go

    	wantErr := uncloned.Execute(io.Discard, nil)
    
    	// toClone must be the same as uncloned. It has to be recreated from scratch,
    	// since cloning cannot occur after execution.
    	toClone := Must(New("").Funcs(funcs).Parse("{{customFunc}}"))
    	cloned := Must(toClone.Clone())
    	gotErr := cloned.Execute(io.Discard, nil)
    
    	if wantErr.Error() != gotErr.Error() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 06 15:48:16 UTC 2022
    - 8K bytes
    - Viewed (0)
  4. src/go/printer/performance_test.go

    		initialize()
    	}
    	b.ReportAllocs()
    	b.SetBytes(fileSize)
    	for i := 0; i < b.N; i++ {
    		testprint(io.Discard, fileNode)
    	}
    }
    
    func BenchmarkPrintDecl(b *testing.B) {
    	if declNode == nil {
    		initialize()
    	}
    	b.ReportAllocs()
    	b.SetBytes(declSize)
    	for i := 0; i < b.N; i++ {
    		testprint(io.Discard, declNode)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 09 15:10:10 UTC 2022
    - 1.8K bytes
    - Viewed (0)
  5. src/bufio/bufio_test.go

    	br.ReadRune()
    	br.Discard(1)
    	if err := br.UnreadRune(); err == nil {
    		t.Error("UnreadRune didn't fail after Discard")
    	}
    }
    
    func TestNoUnreadByteAfterDiscard(t *testing.T) {
    	br := NewReader(strings.NewReader("example"))
    	br.ReadByte()
    	br.Discard(1)
    	if err := br.UnreadByte(); err == nil {
    		t.Error("UnreadByte didn't fail after Discard")
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 10 18:56:01 UTC 2023
    - 51.5K bytes
    - Viewed (0)
  6. src/text/tabwriter/tabwriter_test.go

    		"a\tb\t\td\n" + // hard tabs - do not discard column
    			"a\tb\t\td\te\n" +
    			"a\n" +
    			"a\tb\tc\td\n" +
    			"a\tb\tc\td\te\n",
    
    		"a\tb\t\td\n" +
    			"a\tb\t\td\te\n" +
    			"a\n" +
    			"a\tb\tc\td\n" +
    			"a\tb\tc\td\te\n",
    	},
    
    	{
    		"16c debug",
    		100, 100, 0, '\t', DiscardEmptyColumns | Debug,
    		"a\tb\t\td\n" + // hard tabs - do not discard column
    			"a\tb\t\td\te\n" +
    			"a\n" +
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 16:46:34 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  7. src/internal/types/testdata/fixedbugs/issue60933.go

    import (
    	"io"
    	"os"
    )
    
    func g[T any](...T) {}
    
    // Interface and non-interface types do not match.
    func _() {
    	var file *os.File
    	g(file, io /* ERROR "type io.Writer of io.Discard does not match inferred type *os.File for T" */ .Discard)
    	g(file, os.Stdout)
    }
    
    func _() {
    	var a *os.File
    	var b any
    	g(a, a)
    	g(a, b /* ERROR "type any of b does not match inferred type *os.File for T" */)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 26 18:33:36 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  8. cmd/storage-datatypes_test.go

    		MountPath: "/tmp/drive1",
    		ID:        "uuid",
    		Error:     "",
    	}
    
    	b.SetBytes(1)
    	b.ReportAllocs()
    	b.ResetTimer()
    	for i := 0; i < b.N; i++ {
    		err := msgp.Encode(io.Discard, &v)
    		if err != nil {
    			b.Fatal(err)
    		}
    	}
    }
    
    func BenchmarkEncodeDiskInfoGOB(b *testing.B) {
    	v := DiskInfo{
    		Total:     1000,
    		Free:      1000,
    		Used:      1000,
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Sep 19 18:05:16 UTC 2022
    - 9.4K bytes
    - Viewed (0)
  9. src/cmd/go/testdata/script/check_goexperiment.txt

    # Test that [GOEXPERIMENT:x] is accepted.
    # Here fieldtrack is picked arbitrarily.
    
    [GOEXPERIMENT:nofieldtrack] env
    
    [GOEXPERIMENT:fieldtrack] env
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 28 11:49:00 UTC 2022
    - 178 bytes
    - Viewed (0)
  10. src/cmd/cgo/internal/testcarchive/testdata/libgo6/sigprof.go

    // license that can be found in the LICENSE file.
    
    package main
    
    import (
    	"io"
    	"runtime/pprof"
    )
    
    import "C"
    
    //export go_start_profile
    func go_start_profile() {
    	pprof.StartCPUProfile(io.Discard)
    }
    
    //export go_stop_profile
    func go_stop_profile() {
    	pprof.StopCPUProfile()
    }
    
    func main() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 404 bytes
    - Viewed (0)
Back to top