Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 28 of 28 for Cramer (0.18 sec)

  1. internal/s3select/message.go

    	"encoding/binary"
    	"fmt"
    	"hash/crc32"
    	"net/http"
    	"strconv"
    	"sync/atomic"
    	"time"
    )
    
    // A message is in the format specified in
    // https://docs.aws.amazon.com/AmazonS3/latest/API/images/s3select-frame-diagram-frame-overview.png
    // hence the calculation is made accordingly.
    func totalByteLength(headerLength, payloadLength int) int {
    	return 4 + 4 + 4 + headerLength + payloadLength + 4
    }
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Aug 30 15:26:43 GMT 2022
    - 15.2K bytes
    - Viewed (0)
  2. tests/table_test.go

    	}
    
    	AssertEqual(t, r.Statement.Vars, []interface{}{2, 4, 1, 3})
    }
    
    type UserWithTableNamer struct {
    	gorm.Model
    	Name string
    }
    
    func (UserWithTableNamer) TableName(namer schema.Namer) string {
    	return namer.TableName("user")
    }
    
    func TestTableWithNamer(t *testing.T) {
    	db, _ := gorm.Open(tests.DummyDialector{}, &gorm.Config{
    		NamingStrategy: schema.NamingStrategy{
    			TablePrefix: "t_",
    		},
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Sat Mar 09 09:31:28 GMT 2024
    - 10.6K bytes
    - Viewed (0)
  3. src/cmd/cgo/internal/test/callback_windows.go

    		t.Skip("skipping for non-gc toolchain")
    	}
    	if runtime.GOARCH != "amd64" {
    		// TODO: support SEH on other architectures.
    		t.Skip("skipping on non-amd64")
    	}
    	// Only frames in the test package are checked.
    	want := []string{
    		"test._Cfunc_backtrace",
    		"test.testCallbackCallersSEH.func1.1",
    		"test.testCallbackCallersSEH.func1",
    		"test.goCallback",
    		"test._Cfunc_callback",
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Wed Nov 29 16:01:37 GMT 2023
    - 2.6K bytes
    - Viewed (0)
  4. cmd/untar.go

    }{
    	{
    		header: []byte{0x1f, 0x8b, 8},
    		f:      formatGzip,
    	},
    	{
    		// Zstd default header.
    		header: []byte{0x28, 0xb5, 0x2f, 0xfd},
    		f:      formatZstd,
    	},
    	{
    		// Zstd skippable frame header.
    		header: []byte{0x2a, 0x4d, 0x18},
    		f:      formatZstd,
    	},
    	{
    		// LZ4
    		header: []byte{0x4, 0x22, 0x4d, 0x18},
    		f:      formatLZ4,
    	},
    	{
    		// Snappy/S2 stream
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 6K bytes
    - Viewed (0)
  5. istioctl/pkg/precheck/precheck.go

    		return err
    	}
    	if err != nil {
    		// not found
    		return nil
    	}
    	// found
    	res := ObjectToInstance(svc)
    	messages.Add(msg.NewUpdateIncompatibility(res,
    		"meshConfig.defaultConfig.tracer", "1.21",
    		"tracing is no longer by default enabled to send to 'zipkin.istio-system.svc'; "+
    			"follow https://istio.io/latest/docs/tasks/observability/distributed-tracing/telemetry-api/",
    		"1.21"))
    	return nil
    }
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Apr 12 02:57:30 GMT 2024
    - 19.3K bytes
    - Viewed (0)
  6. tests/tracer_test.go

    import (
    	"context"
    	"time"
    
    	"gorm.io/gorm/logger"
    )
    
    type Tracer struct {
    	Logger logger.Interface
    	Test   func(ctx context.Context, begin time.Time, fc func() (sql string, rowsAffected int64), err error)
    }
    
    func (S Tracer) LogMode(level logger.LogLevel) logger.Interface {
    	return S.Logger.LogMode(level)
    }
    
    func (S Tracer) Info(ctx context.Context, s string, i ...interface{}) {
    	S.Logger.Info(ctx, s, i...)
    }
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Tue Oct 18 09:28:06 GMT 2022
    - 830 bytes
    - Viewed (0)
  7. cmd/http-tracer.go

    Klaus Post <******@****.***> 1700528975 -0800
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Nov 21 01:09:35 GMT 2023
    - 5.9K bytes
    - Viewed (0)
  8. utils/utils.go

    	len := runtime.Callers(3, pcs[:])
    	frames := runtime.CallersFrames(pcs[:len])
    	for i := 0; i < len; i++ {
    		// second return value is "more", not "ok"
    		frame, _ := frames.Next()
    		if (!strings.HasPrefix(frame.File, gormSourceDir) ||
    			strings.HasSuffix(frame.File, "_test.go")) && !strings.HasSuffix(frame.File, ".gen.go") {
    			return string(strconv.AppendInt(append([]byte(frame.File), ':'), int64(frame.Line), 10))
    		}
    	}
    
    	return ""
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Mon Apr 22 06:43:02 GMT 2024
    - 3.8K bytes
    - Viewed (0)
Back to top