Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for testregex (0.14 sec)

  1. src/regexp/exec_test.go

    			i = j + 1
    		}
    	}
    	return out
    }
    
    // TestFowler runs this package's regexp API against the
    // POSIX regular expression tests collected by Glenn Fowler
    // at http://www2.research.att.com/~astopen/testregex/testregex.html.
    func TestFowler(t *testing.T) {
    	files, err := filepath.Glob("testdata/*.dat")
    	if err != nil {
    		t.Fatal(err)
    	}
    	for _, file := range files {
    		t.Log(file)
    		testFowler(t, file)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:36:03 UTC 2024
    - 20.7K bytes
    - Viewed (0)
  2. platforms/core-runtime/time/src/test/groovy/org/gradle/internal/time/DefaultTimerTest.groovy

        }
    
        def testHoursZeroMinutes() {
            when:
            setTime(1, 0, 32, 0)
    
            then:
            timer.getElapsed() == "1 hrs 0 mins 32.0 secs"
        }
    
        def testReset() throws Exception {
            when:
            setTime(100)
            timer.reset()
            setTime(200)
    
            then:
            timer.elapsedMillis == 100
        }
    
        def testElapsed() throws Exception {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 20:20:17 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  3. pilot/pkg/model/virtualservice.go

    	}
    	// If root regex match is specified, delegate should not have other matches.
    	if root.GetRegex() != "" {
    		if leaf.GetRegex() != "" || leaf.GetPrefix() != "" || leaf.GetExact() != "" {
    			return true
    		}
    	}
    	// If delegate regex match is specified, root should not have other matches.
    	if leaf.GetRegex() != "" {
    		if root.GetRegex() != "" || root.GetPrefix() != "" || root.GetExact() != "" {
    			return true
    		}
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Mar 30 11:17:03 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  4. testing/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/internal/gtest-death-test-internal.h

      GTEST_AMBIGUOUS_ELSE_BLOCKER_ \
      if (::testing::internal::AlwaysTrue()) { \
        const ::testing::internal::RE& gtest_regex = (regex); \
        ::testing::internal::DeathTest* gtest_dt; \
        if (!::testing::internal::DeathTest::Create(#statement, &gtest_regex, \
            __FILE__, __LINE__, &gtest_dt)) { \
          goto GTEST_CONCAT_TOKEN_(gtest_label_, __LINE__); \
        } \
        if (gtest_dt != NULL) { \
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  5. src/time/sleep_test.go

    		for i := 0; i < 100; i++ {
    			runtime.GC()
    		}
    		c <- true
    	}()
    	for i := 0; i < 100; i++ {
    		Sleep(0)
    		tmp := make(chan bool, 1)
    		tmp <- true
    		<-tmp
    	}
    	<-c
    }
    
    func testReset(d Duration) error {
    	t0 := NewTimer(2 * d)
    	Sleep(d)
    	if !t0.Reset(3 * d) {
    		return errors.New("resetting unfired timer returned false")
    	}
    	Sleep(2 * d)
    	select {
    	case <-t0.C:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 22 16:33:57 UTC 2024
    - 22.5K bytes
    - Viewed (0)
  6. pilot/pkg/simulation/traffic.go

    			}
    		case *route.RouteMatch_Path:
    			if input.Path != pt.Path {
    				continue
    			}
    		case *route.RouteMatch_SafeRegex:
    			r, err := regexp.Compile(pt.SafeRegex.GetRegex())
    			if err != nil {
    				sim.t.Fatalf("invalid regex %v: %v", pt.SafeRegex.GetRegex(), err)
    			}
    			if !r.MatchString(input.Path) {
    				continue
    			}
    		default:
    			sim.t.Fatalf("unknown route path type %T", pt)
    		}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 01:56:28 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  7. pkg/config/validation/virtualservice.go

    				errs = appendErrors(errs, ValidateHTTPHeaderNameOrJwtClaimRoute(name))
    				// `*` is NOT a RE2 style regex, it will be translated as present_match.
    				if header != nil && header.GetRegex() != "*" {
    					errs = appendErrors(errs, validateStringMatch(header, "withoutHeaders"))
    				}
    			}
    
    			// uri allows empty prefix match:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 04:03:27 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  8. pilot/pkg/networking/core/route/route_test.go

    			serviceRegistry, nil, 8080, gatewayNames, route.RouteOptions{})
    		xdstest.ValidateRoutes(t, routes)
    		g.Expect(err).NotTo(HaveOccurred())
    		g.Expect(len(routes)).To(Equal(1))
    		g.Expect(routes[0].GetMatch().GetSafeRegex().GetRegex()).To(Equal("\\/(.?)\\/status"))
    	})
    
    	t.Run("for virtual service with stat_prefix set for a match on URI", func(t *testing.T) {
    		g := NewWithT(t)
    		cg := core.NewConfigGenTest(t, core.TestOptions{})
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 14 14:12:39 UTC 2024
    - 88.1K bytes
    - Viewed (0)
  9. pkg/bootstrap/instance_test.go

    		case "suffix":
    			pat = pattern.GetSuffix()
    		case "regexp":
    			// Migration tracked in https://github.com/istio/istio/issues/17127
    			//nolint: staticcheck
    			pat = pattern.GetSafeRegex().GetRegex()
    		}
    
    		if pat != "" {
    			patterns = append(patterns, pat)
    		}
    	}
    	gotPattern := strings.Join(patterns, ",")
    	if want != gotPattern {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 16 17:05:28 UTC 2024
    - 19.5K bytes
    - Viewed (0)
  10. pilot/pkg/networking/core/route/route.go

    		switch ps.(type) {
    		case *route.RouteMatch_Prefix:
    			path = m.GetPrefix() + "*"
    		case *route.RouteMatch_Path:
    			path = m.GetPath()
    		case *route.RouteMatch_SafeRegex:
    			path = m.GetSafeRegex().GetRegex()
    		}
    	}
    
    	// If there is only one destination cluster in route, return host:port/uri as description of route.
    	// Otherwise there are multiple destination clusters and destination host is not clear. For that case
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 14 14:12:39 UTC 2024
    - 56.1K bytes
    - Viewed (0)
Back to top