Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 6,138 for tError (4.22 sec)

  1. pkg/log/default_test.go

    			pat: timePattern + "\twarn\tHello",
    		},
    
    		{
    			f:   func() { Error("Hello") },
    			pat: timePattern + "\terror\tHello",
    		},
    		{
    			f:   func() { Errorf("Hello") },
    			pat: timePattern + "\terror\tHello",
    		},
    		{
    			f:   func() { Errorf("%s", "Hello") },
    			pat: timePattern + "\terror\tHello",
    		},
    
    		{
    			f:        func() { Fatal("Hello") },
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Mar 26 20:38:10 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  2. pkg/log/scope_test.go

    		},
    		{
    			func() { klog.ErrorS(errors.New("my error"), "info") },
    			"error\tklog\tmy error: info",
    		},
    		{
    			func() { klog.Info("a", "b") },
    			"info\tklog\tab",
    		},
    		{
    			func() { klog.InfoS("msg", "key", 1) },
    			"info\tklog\tmsg\tkey=1",
    		},
    		{
    			func() { klog.ErrorS(errors.New("my error"), "info", "key", 1) },
    			"error\tklog\tmy error: info\tkey=1",
    		},
    	}
    	for _, tt := range cases {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jan 03 17:36:09 UTC 2024
    - 11K bytes
    - Viewed (0)
  3. pkg/log/config_test.go

    		log.Println("golang-2")
    		grpclog.Error("grpc-error-2")
    		grpclog.Warning("grpc-warn-2")
    		grpclog.Info("grpc-info-2")
    		zap.L().Error("zap-error-2")
    		zap.L().Warn("zap-warn-2")
    		zap.L().Info("zap-info-2")
    		zap.L().Debug("zap-debug-2")
    	})
    
    	patterns := []string{
    		timePattern + "\tinfo\tlog/config_test.go:.*\tgolang",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Mar 26 20:38:10 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  4. src/html/template/transition.go

    			return c, i + 1
    		}
    		c, _ = tURL(c, decodeCSS(s[:i+1]))
    		k = i + 1
    	}
    }
    
    // tError is the context transition function for the error state.
    func tError(c context, s []byte) (context, int) {
    	return c, len(s)
    }
    
    // eatAttrName returns the largest j such that s[i:j] is an attribute name.
    // It returns an error if s[i:] does not look like it begins with an
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 11 19:54:31 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  5. istioctl/pkg/metrics/metrics.go

    	}
    	sm.p99Latency = p99Latency
    
    	if me.ErrorOrNil() != nil {
    		return sm, fmt.Errorf("error retrieving some metrics: %v", me.Error())
    	}
    
    	return sm, nil
    }
    
    func getLatency(promAPI promv1.API, workloadName, workloadNamespace string, duration time.Duration, quantile float64) (time.Duration, error) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Apr 13 05:23:38 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  6. src/runtime/crash_test.go

    		}
    	}
    }
    
    // Test that panic while panicking discards error message
    // See issue 52257
    func TestPanicWhilePanicking(t *testing.T) {
    	tests := []struct {
    		Want string
    		Func string
    	}{
    		{
    			"panic while printing panic value: important multi-line\n\terror message",
    			"ErrorPanic",
    		},
    		{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 19:46:10 UTC 2024
    - 27K bytes
    - Viewed (0)
  7. cni/pkg/nodeagent/error.go

    	"errors"
    	"fmt"
    )
    
    var ErrPartialAdd = errors.New("partial add error")
    
    type PartialAddError struct {
    	inner error
    }
    
    func (e *PartialAddError) Error() string {
    	return fmt.Sprintf("%s: %v", ErrPartialAdd.Error(), e.inner)
    }
    
    func (e *PartialAddError) Unwrap() []error {
    	return []error{ErrPartialAdd, e.inner}
    }
    
    func NewErrPartialAdd(err error) *PartialAddError {
    	return &PartialAddError{
    		inner: err,
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jan 26 20:34:28 UTC 2024
    - 1K bytes
    - Viewed (0)
  8. src/html/template/error.go

    import (
    	"fmt"
    	"text/template/parse"
    )
    
    // Error describes a problem encountered during template Escaping.
    type Error struct {
    	// ErrorCode describes the kind of error.
    	ErrorCode ErrorCode
    	// Node is the node that caused the problem, if known.
    	// If not nil, it overrides Name and Line.
    	Node parse.Node
    	// Name is the name of the template in which the error was encountered.
    	Name string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 02 15:18:39 UTC 2023
    - 9.3K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apimachinery/pkg/util/wait/error.go

    // to get an error that will return true for Interrupted(err).
    var errWaitTimeout = errInterrupted{}
    
    func (e errInterrupted) Unwrap() error        { return e.cause }
    func (e errInterrupted) Is(target error) bool { return target == errWaitTimeout }
    func (e errInterrupted) Error() string {
    	if e.cause == nil {
    		// returns the same error message as historical behavior
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 14 19:14:11 UTC 2023
    - 3K bytes
    - Viewed (0)
  10. src/encoding/gob/error.go

    // Panics caused by user error (that is, everything except run-time panics
    // such as "index out of bounds" errors) do not leave the file that caused
    // them, but are instead turned into plain error returns. Encoding and
    // decoding functions and methods that do not return an error either use
    // panic to report an error or are guaranteed error-free.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 30 23:03:07 UTC 2022
    - 1.3K bytes
    - Viewed (0)
Back to top