Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 189 for picard (0.2 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. staging/src/k8s.io/apimachinery/pkg/runtime/serializer/encoder_with_allocator_test.go

    	for _, tc := range benchTestCases() {
    		b.Run(tc.name, func(b *testing.B) {
    			b.ReportAllocs()
    			for n := 0; n < b.N; n++ {
    				err := target.Encode(tc.obj, ioutil.Discard)
    				if err != nil {
    					b.Fatal(err)
    				}
    			}
    		})
    	}
    }
    
    func benchmarkEncodeWithAllocatorFor(b *testing.B, target runtime.EncoderWithAllocator) {
    	for _, tc := range benchTestCases() {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 23 13:38:29 UTC 2022
    - 3.6K bytes
    - Viewed (0)
  7. 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)
  8. src/compress/flate/writer_test.go

    			if len(buf0) > n-i {
    				buf0 = buf0[:n-i]
    			}
    			copy(buf1[i:], buf0)
    		}
    		buf0 = nil
    		w, err := NewWriter(io.Discard, level)
    		if err != nil {
    			b.Fatal(err)
    		}
    		runtime.GC()
    		b.StartTimer()
    		for i := 0; i < b.N; i++ {
    			w.Reset(io.Discard)
    			w.Write(buf1)
    			w.Close()
    		}
    	})
    }
    
    // errorWriter is a writer that fails after N writes.
    type errorWriter struct {
    	N int
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 20 18:41:18 UTC 2020
    - 5.4K bytes
    - Viewed (0)
  9. 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)
  10. src/cmd/asm/internal/asm/testdata/386.s

    	IMULL	AX
    	IMULL	$4, CX
    	IMULL	AX, BX
    
    // LTYPEXC spec9	{ outcode(int($1), &$2); }
    	CMPPD	X0, X1, 4
    	CMPPD	foo+4(SB), X1, 4
    
    // LTYPEX spec10	{ outcode(int($1), &$2); }
    	PINSRD	$1, (AX), X0
    	PINSRD	$2, foo+4(FP), X0
    
    // Was bug: LOOP is a branch instruction.
    	JCS	2(PC)
    loop:
    	LOOP	loop // LOOP
    
    // Tests for TLS reference.
    	MOVL    (TLS), AX
    	MOVL    8(TLS), DX
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 09 18:57:21 UTC 2019
    - 2K bytes
    - Viewed (0)
Back to top