Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 1,928 for perror (0.19 sec)

  1. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/validating/caching_authorizer_test.go

    						decision: authorizer.DecisionAllow,
    						reason:   "test reason",
    						error:    fmt.Errorf("test error"),
    					},
    				},
    				{
    					attributes: authorizer.AttributesRecord{Name: "test name"},
    					expected: result{
    						decision: authorizer.DecisionAllow,
    						reason:   "test reason",
    						error:    fmt.Errorf("test error"),
    					},
    				},
    			},
    			backend: []result{
    				{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 12 18:58:24 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  2. src/internal/types/testdata/check/cycles5a.go

    }
    
    type I4 interface {
    	I1
    }
    
    
    // check embedding of error interface
    
    type Error interface{ error }
    
    var err Error
    var _ = err.Error()
    
    
    // more esoteric cases
    
    type (
    	T1 interface { T2 }
    	T2 /* ERROR "invalid recursive type" */ T2
    )
    
    type (
    	T3 interface { T4 }
    	T4 /* ERROR "invalid recursive type" */ T5
    	T5 = T6
    	T6 = T7
    	T7 = T4
    )
    
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 05 18:13:11 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  3. src/internal/types/testdata/check/labels.go

    package labels
    
    var x int
    
    func f0() {
    L1 /* ERROR "label L1 declared and not used" */ :
    	for {
    	}
    L2 /* ERROR "label L2 declared and not used" */ :
    	select {
    	}
    L3 /* ERROR "label L3 declared and not used" */ :
    	switch {
    	}
    L4 /* ERROR "label L4 declared and not used" */ :
    	if true {
    	}
    L5 /* ERROR "label L5 declared and not used" */ :
    	f0()
    L6:
    	f0()
    L6 /* ERROR "label L6 already declared" */ :
    	f0()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  4. src/database/sql/example_service_test.go

    		if closeErr := rows.Close(); closeErr != nil {
    			http.Error(w, closeErr.Error(), http.StatusInternalServerError)
    			return
    		}
    
    		// Check for row scan error.
    		if err != nil {
    			http.Error(w, err.Error(), http.StatusInternalServerError)
    			return
    		}
    
    		// Check for errors during row iteration.
    		if err = rows.Err(); err != nil {
    			http.Error(w, err.Error(), http.StatusInternalServerError)
    			return
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 28 20:21:26 UTC 2024
    - 4K bytes
    - Viewed (0)
  5. cmd/naughty-disk_test.go

    // specified by the developer. The purpose is to simulate errors
    // that are hard to simulate in practice like DiskNotFound.
    // Programmed errors are stored in errors field.
    type naughtyDisk struct {
    	// The real disk
    	disk StorageAPI
    	// Programmed errors: API call number => error to return
    	errors map[int]error
    	// The error to return when no error value is programmed
    	defaultErr error
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  6. cni/pkg/iptables/nldeps.go

    type NetlinkDependencies interface {
    	AddInpodMarkIPRule(cfg *Config) error
    	DelInpodMarkIPRule(cfg *Config) error
    	AddLoopbackRoutes(cfg *Config) error
    	DelLoopbackRoutes(cfg *Config) error
    }
    
    func RealNlDeps() NetlinkDependencies {
    	return &realDeps{}
    }
    
    type realDeps struct{}
    
    func (r *realDeps) AddInpodMarkIPRule(cfg *Config) error {
    	return AddInpodMarkIPRule(cfg)
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jan 26 20:34:28 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  7. cni/pkg/ipset/ipset.go

    	deleteIP(name string, ip netip.Addr, ipProto uint8) error
    	flush(name string) error
    	clearEntriesWithComment(name string, comment string) error
    	clearEntriesWithIP(name string, ip netip.Addr) error
    	listEntriesByIP(name string) ([]netip.Addr, error)
    }
    
    // TODO this should actually create v6 and v6 subsets of type `hash:ip`, add them both to a
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 30 22:24:38 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  8. platforms/core-configuration/declarative-dsl-core/src/test/kotlin/org/gradle/internal/declarativedsl/dom/DomTest.kt

                    error(UnsupportedSyntax(DanglingExpr)[251..251]
                    error(UnsupportedSyntax(ElementWithExplicitReceiver)[259..261]
                    error(UnsupportedSyntax(AssignmentWithExplicitReceiver)[267..273]
                    error(UnsupportedSyntax(LocalVal)[279..287]
                    error(SyntaxError(Parsing failure, unexpected tokenType in expression: POSTFIX_EXPRESSION)[307..319]
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 31 13:47:09 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  9. src/internal/types/testdata/check/typeinst0.go

    var x int
    type _ x /* ERROR "not a type" */ [int]
    
    type _ int /* ERROR "not a generic type" */ [] // ERROR "expected type argument list"
    type _ myInt /* ERROR "not a generic type" */ [] // ERROR "expected type argument list"
    
    // TODO(gri) better error messages
    type _ T1[] // ERROR "expected type argument list"
    type _ T1[x /* ERROR "not a type" */ ]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 28 02:54:10 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  10. src/internal/types/testdata/check/lookup2.go

    	_ = x.abS  // ERROR "x.abS undefined (type *big.Float has no field or method abS)"
    	_ = x.form // ERROR "x.form undefined (cannot refer to unexported field form)"
    	_ = x.forM // ERROR "x.forM undefined (type *big.Float has no field or method forM)"
    }
    
    func _() {
    	_ = ast.File{Name: nil} // OK
    	_ = ast.File{NamE /* ERROR "unknown field NamE in struct literal of type ast.File, but does have Name" */ : nil}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 07 16:41:56 UTC 2024
    - 4.8K bytes
    - Viewed (0)
Back to top