Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 71 for matchList (0.27 sec)

  1. test/fixedbugs/issue4847.go

    // Issue 4847: initialization cycle is not detected.
    
    package p
    
    type (
    	E int
    	S int
    )
    
    type matcher func(s *S) E
    
    func matchList(s *S) E { return matcher(matchAnyFn)(s) }
    
    var foo = matcher(matchList)
    
    var matchAny = matcher(matchList) // ERROR "initialization cycle|depends upon itself"
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 23 20:27:09 UTC 2022
    - 519 bytes
    - Viewed (0)
  2. src/internal/types/testdata/check/init1.go

    func f6() { _ = y6 }
    
    // full test case
    
    type (
          E int
          S int
    )
    
    type matcher func(s *S) E
    
    func matchList(s *S) E { return matcher(matchAnyFn)(s) }
    
    var foo = matcher(matchList)
    
    var matchAny /* ERROR "initialization cycle" */ = matcher(matchList)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:54:25 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  3. src/testing/testing.go

    	if _, err := matchString(*matchList, "non-empty"); err != nil {
    		fmt.Fprintf(os.Stderr, "testing: invalid regexp in -test.list (%q): %s\n", *matchList, err)
    		os.Exit(1)
    	}
    
    	for _, test := range tests {
    		if ok, _ := matchString(*matchList, test.Name); ok {
    			fmt.Println(test.Name)
    		}
    	}
    	for _, bench := range benchmarks {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 76.1K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiextensions-apiserver/examples/client-go/pkg/client/clientset/versioned/typed/cr/v1/example.go

    	if watchListOptions, hasWatchListOptionsPrepared, watchListOptionsErr := watchlist.PrepareWatchListOptionsFromListOptions(opts); watchListOptionsErr != nil {
    		klog.Warningf("Failed preparing watchlist options for examples, falling back to the standard LIST semantics, err = %v", watchListOptionsErr)
    	} else if hasWatchListOptionsPrepared {
    		result, err := c.watchList(ctx, watchListOptions)
    		if err == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 10:52:54 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  5. pilot/pkg/model/config.go

    	found := false
    	var matchHost host.Name
    	var matchValue V
    
    	for h, v := range wildcard {
    		if strings.HasSuffix(needle, string(h[1:])) {
    			if !found {
    				matchHost = h
    				matchValue = wildcard[h]
    				found = true
    			} else if host.MoreSpecific(h, matchHost) {
    				matchHost = h
    				matchValue = v
    			}
    		}
    	}
    
    	return matchHost, matchValue, found
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Feb 28 08:51:03 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset/typed/apiextensions/v1/customresourcedefinition.go

    	if watchListOptions, hasWatchListOptionsPrepared, watchListOptionsErr := watchlist.PrepareWatchListOptionsFromListOptions(opts); watchListOptionsErr != nil {
    		klog.Warningf("Failed preparing watchlist options for customresourcedefinitions, falling back to the standard LIST semantics, err = %v", watchListOptionsErr)
    	} else if hasWatchListOptionsPrepared {
    		result, err := c.watchList(ctx, watchListOptions)
    		if err == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 10:52:54 UTC 2024
    - 12K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset/typed/apiextensions/v1beta1/customresourcedefinition.go

    	if watchListOptions, hasWatchListOptionsPrepared, watchListOptionsErr := watchlist.PrepareWatchListOptionsFromListOptions(opts); watchListOptionsErr != nil {
    		klog.Warningf("Failed preparing watchlist options for customresourcedefinitions, falling back to the standard LIST semantics, err = %v", watchListOptionsErr)
    	} else if hasWatchListOptionsPrepared {
    		result, err := c.watchList(ctx, watchListOptions)
    		if err == nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 10:52:54 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apimachinery/pkg/apis/meta/internalversion/validation/validation_test.go

    	}, {
    		name: "watch-sendInitialEvents-no-watchlist-fg-disabled",
    		opts: internalversion.ListOptions{
    			Watch:                true,
    			SendInitialEvents:    boolPtrFn(true),
    			ResourceVersionMatch: metav1.ResourceVersionMatchNotOlderThan,
    			AllowWatchBookmarks:  true,
    		},
    		expectErrors: []string{"sendInitialEvents: Forbidden: sendInitialEvents is forbidden for watch unless the WatchList feature gate is enabled"},
    	}, {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 02 07:48:42 UTC 2023
    - 7.6K bytes
    - Viewed (0)
  9. src/vendor/golang.org/x/net/http/httpproxy/proxy.go

    		if strings.HasPrefix(phost, "*.") {
    			phost = phost[1:]
    		}
    		matchHost := false
    		if phost[0] != '.' {
    			matchHost = true
    			phost = "." + phost
    		}
    		if v, err := idnaASCII(phost); err == nil {
    			phost = v
    		}
    		c.domainMatchers = append(c.domainMatchers, domainMatch{host: phost, port: pport, matchHost: matchHost})
    	}
    }
    
    var portMap = map[string]string{
    	"http":   "80",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Mar 09 00:09:40 UTC 2024
    - 10K bytes
    - Viewed (0)
  10. pilot/pkg/security/authz/model/generator.go

    			iss, sub = value[:idx], value[idx+1:]
    		} else {
    			iss = value
    		}
    		var matchIss, matchSub *matcherpb.StringMatcher
    		switch {
    		case value == "*":
    			matchIss = matchAny
    			matchSub = matchAny
    		case strings.HasPrefix(value, "*"):
    			if found {
    				if iss == "*" {
    					matchIss = matchAny
    				} else {
    					matchIss = matcher.StringMatcherSuffix(strings.TrimPrefix(iss, "*"), false)
    				}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 03 18:02:42 UTC 2024
    - 14.1K bytes
    - Viewed (0)
Back to top