Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for NewErr (0.51 sec)

  1. staging/src/k8s.io/apiserver/pkg/cel/format.go

    }
    
    func (d *Format) ConvertToType(typeVal ref.Type) ref.Val {
    	switch typeVal {
    	case FormatType:
    		return d
    	case types.TypeType:
    		return FormatType
    	default:
    		return types.NewErr("type conversion error from '%s' to '%s'", FormatType, typeVal)
    	}
    }
    
    func (d *Format) Equal(other ref.Val) ref.Val {
    	otherDur, ok := other.(*Format)
    	if !ok {
    		return types.MaybeNoSuchOverloadErr(other)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 23 17:22:44 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/cel/lazy/lazy_test.go

    	variablesMap.Append("dict", func(_ *MapValue) ref.Val {
    		evalCounter++
    		v, err := compileAndRun(env, activation, `{"a": "a"}`)
    		if err != nil {
    			return types.NewErr(err.Error())
    		}
    		return v
    	})
    
    	// iterate the map with .all
    	exp = `variables.all(n, n != "")`
    	v, err = compileAndRun(env, activation, exp)
    	if err != nil {
    		t.Fatalf("%q: %v", exp, err)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  3. src/crypto/tls/handshake_client_test.go

    				defer close(signalChan)
    
    				buf := make([]byte, 256)
    				n, err := client.Read(buf)
    
    				if test.checkRenegotiationError != nil {
    					newErr := test.checkRenegotiationError(i, err)
    					if err != nil && newErr == nil {
    						return
    					}
    					err = newErr
    				}
    
    				if err != nil {
    					t.Errorf("Client.Read failed after renegotiation #%d: %s", i, err)
    					return
    				}
    
    				buf = buf[:n]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 88.7K bytes
    - Viewed (0)
Back to top