Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 30 for testregex (0.15 sec)

  1. 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)
  2. src/compress/flate/inflate_test.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package flate
    
    import (
    	"bufio"
    	"bytes"
    	"io"
    	"strings"
    	"testing"
    )
    
    func TestReset(t *testing.T) {
    	ss := []string{
    		"lorem ipsum izzle fo rizzle",
    		"the quick brown fox jumped over",
    	}
    
    	deflated := make([]bytes.Buffer, 2)
    	for i, s := range ss {
    		w, _ := NewWriter(&deflated[i], 1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 24 23:23:54 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  3. platforms/documentation/docs/src/snippets/native-binaries/google-test/groovy/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: Mon Nov 27 17:53:42 UTC 2023
    - 13.1K 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. android/guava-tests/test/com/google/common/io/FileBackedOutputStreamTest.java

        out.close();
        assertThrows(IOException.class, () -> out.write(42));
    
        // Verify that write had no effect
        assertTrue(Arrays.equals(data, source.read()));
        out.reset();
      }
    
      public void testReset() throws Exception {
        byte[] data = newPreFilledByteArray(100);
        FileBackedOutputStream out = new FileBackedOutputStream(Integer.MAX_VALUE);
        ByteSource source = out.asByteSource();
    
        out.write(data);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/io/FileBackedOutputStreamTest.java

        out.close();
        assertThrows(IOException.class, () -> out.write(42));
    
        // Verify that write had no effect
        assertTrue(Arrays.equals(data, source.read()));
        out.reset();
      }
    
      public void testReset() throws Exception {
        byte[] data = newPreFilledByteArray(100);
        FileBackedOutputStream out = new FileBackedOutputStream(Integer.MAX_VALUE);
        ByteSource source = out.asByteSource();
    
        out.write(data);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  7. pilot/pkg/security/authz/matcher/header_test.go

    				},
    			},
    		},
    	}
    
    	for _, tc := range testCases {
    		t.Run(tc.Name, func(t *testing.T) {
    			actual := HostMatcherWithRegex(tc.K, tc.V)
    			if re := actual.GetStringMatch().GetSafeRegex().GetRegex(); re != "" {
    				_, err := regexp.Compile(re)
    				if err != nil {
    					t.Errorf("failed to compile regex %s: %v", re, err)
    				}
    			}
    			if !cmp.Equal(tc.Expect, actual, protocmp.Transform()) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Aug 17 22:42:11 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  8. 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)
  9. src/main/java/org/codelibs/fess/es/config/bsbhv/BsPathMappingBhv.java

                result.setCreatedTime(DfTypeUtil.toLong(source.get("createdTime")));
                result.setProcessType(DfTypeUtil.toString(source.get("processType")));
                result.setRegex(DfTypeUtil.toString(source.get("regex")));
                result.setReplacement(DfTypeUtil.toString(source.get("replacement")));
                result.setSortOrder(DfTypeUtil.toInteger(source.get("sortOrder")));
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  10. 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)
Back to top