Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 89 for Pat (0.1 sec)

  1. pkg/log/config_test.go

    		for i := len(patterns); i < len(lines); i++ {
    			t.Errorf("  Extra line of output: %s", lines[i])
    		}
    	}
    
    	for i, pat := range patterns {
    		t.Run(strconv.Itoa(i), func(t *testing.T) {
    			match, _ := regexp.MatchString(pat, lines[i])
    			if !match {
    				t.Errorf("Got '%s', expecting to match '%s'", lines[i], pat)
    			}
    		})
    	}
    
    	lines, _ = captureStdout(func() {
    		o := DefaultOptions()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Mar 26 20:38:10 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/ir/tfl_canonicalize.td

    // %2 = "tfl.reshape"(%1, %cst_1) : (tensor<8x56x56x7xf32>, tensor<7xi32>) -> tensor<1x1x8x56x56x7x1xf32>
    def ConvertTransposeToDecreaseRank : Pat<
      (TFL_TransposeOp:$output_transpose $input, (Arith_ConstantOp:$permutation $_)),
      (TFL_ReshapeOp
        (TFL_TransposeOp
          (TFL_ReshapeOp $input, (Arith_ConstantOp (GetSqueezedShape $input))),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Dec 13 20:41:03 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  3. src/net/http/routing_tree_test.go

    			"/a/b/{x...}", "/a/b/{y}", "/a/b/{$}")
    	}
    	return testTree
    }
    
    func buildTree(pats ...string) *routingNode {
    	root := &routingNode{}
    	for _, p := range pats {
    		pat, err := parsePattern(p)
    		if err != nil {
    			panic(err)
    		}
    		root.addPattern(pat, nil)
    	}
    	return root
    }
    
    func TestRoutingAddPattern(t *testing.T) {
    	want := `"":
        "":
            "a":
                "/a"
                "":
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 30 15:43:24 UTC 2024
    - 7K bytes
    - Viewed (0)
  4. pkg/util/coverage/fake_test_deps.go

    //nolint:unused // U1000 see comment above, we know it's unused normally.
    func (fakeTestDeps) ImportPath() string {
    	return ""
    }
    
    //nolint:unused // U1000 see comment above, we know it's unused normally.
    func (fakeTestDeps) MatchString(pat, str string) (bool, error) {
    	return false, nil
    }
    
    //nolint:unused // U1000 see comment above, we know it's unused normally.
    func (fakeTestDeps) SetPanicOnExit0(bool) {}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 15:31:22 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  5. src/cmd/gofmt/rewrite.go

    	m := make(map[string]reflect.Value)
    	pat := reflect.ValueOf(pattern)
    	repl := reflect.ValueOf(replace)
    
    	var rewriteVal func(val reflect.Value) reflect.Value
    	rewriteVal = func(val reflect.Value) reflect.Value {
    		// don't bother if val is invalid to start with
    		if !val.IsValid() {
    			return reflect.Value{}
    		}
    		val = apply(rewriteVal, val)
    		clear(m)
    		if match(m, pat, val) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 27 22:07:13 UTC 2023
    - 8.1K bytes
    - Viewed (0)
  6. src/index/suffixarray/suffixarray_test.go

    					tc.name, rx, i, e[0], e[1], r[0], r[1])
    			}
    		}
    	}
    }
    
    func testLookups(t *testing.T, tc *testCase, x *Index, n int) {
    	for _, pat := range tc.patterns {
    		testLookup(t, tc, x, pat, n)
    		if rx, err := regexp.Compile(pat); err == nil {
    			testFindAllIndex(t, tc, x, rx, n)
    		}
    	}
    }
    
    // index is used to hide the sort.Interface
    type index Index
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  7. src/go/doc/testdata/testing.go

    		t.signal <- t
    	}()
    
    	test.F(t)
    }
    
    // An internal function but exported because it is cross-package; part of the implementation
    // of go test.
    func Main(matchString func(pat, str string) (bool, error), tests []InternalTest, benchmarks []InternalBenchmark, examples []InternalExample) {
    	flag.Parse()
    	parseCpuList()
    
    	before()
    	startAlarm()
    	testOk := RunTests(matchString, tests)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Oct 02 02:28:27 UTC 2022
    - 11.8K bytes
    - Viewed (0)
  8. src/regexp/all_test.go

    	}
    }
    
    func TestBadCompile(t *testing.T) {
    	for i := 0; i < len(badRe); i++ {
    		compileTest(t, badRe[i].re, badRe[i].err)
    	}
    }
    
    func matchTest(t *testing.T, test *FindTest) {
    	re := compileTest(t, test.pat, "")
    	if re == nil {
    		return
    	}
    	m := re.MatchString(test.text)
    	if m != (len(test.matches) > 0) {
    		t.Errorf("MatchString failure on %s: %t should be %t", test, m, len(test.matches) > 0)
    	}
    	// now try bytes
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:36:03 UTC 2024
    - 25.8K bytes
    - Viewed (0)
  9. src/testing/testing.go

    // See the doc comment on func Main and use MainStart instead.
    var errMain = errors.New("testing: unexpected use of func Main")
    
    type matchStringOnly func(pat, str string) (bool, error)
    
    func (f matchStringOnly) MatchString(pat, str string) (bool, error)   { return f(pat, str) }
    func (f matchStringOnly) StartCPUProfile(w io.Writer) error           { return errMain }
    func (f matchStringOnly) StopCPUProfile()                             {}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 76.1K bytes
    - Viewed (0)
  10. src/regexp/testdata/testregex.c

    			if (state.stack)
    				printf(", stack");
    #endif
    			if (test & TEST_VERBOSE)
    				printf(", verbose");
    			printf("\n");
    #ifdef REG_VERSIONID
    			if (regerror(REG_VERSIONID, NiL, pat, sizeof(pat)) > 0)
    				s = pat;
    			else
    #endif
    #ifdef REG_TEST_VERSION
    			s = REG_TEST_VERSION;
    #else
    			s = "regex";
    #endif
    			printf("NOTE\t%s\n", s);
    			if (elementsof(unsupported) > 1)
    			{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 08 04:08:51 UTC 2014
    - 51.3K bytes
    - Viewed (0)
Back to top