- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 24 for Pat (0.03 sec)
-
src/regexp/find_test.go
// and the byte results from the string results. Therefore the table includes // only the FindAllStringSubmatchIndex result. type FindTest struct { pat string text string matches [][]int } func (t FindTest) String() string { return fmt.Sprintf("pat: %#q text: %#q", t.pat, t.text) } var findTests = []FindTest{ {``, ``, build(1, 0, 0)}, {`^abcdefg`, "abcdefg", build(1, 0, 7)}, {`a+`, "baaab", build(1, 1, 4)},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 11 15:28:50 UTC 2021 - 16.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/decompose_resource_ops.td
def DecomposeAssignAddVariableOp : Pat< (TF_AssignAddVariableOp:$src_op $resource, $value), (TF_AssignVariableOp $resource, (TF_AddV2Op (CreateTFReadVariableOp $src_op, $value, $resource), $value ), (CreateConstBoolAttrFalse) ) >; def DecomposeAssignSubVariableOp : Pat< (TF_AssignSubVariableOp:$src_op $resource, $value),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 22 19:47:48 UTC 2024 - 20.7K bytes - Viewed (0) -
pkg/bootstrap/instance_test.go
var pat string switch typ { case "prefix": pat = pattern.GetPrefix() 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) } }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 16 17:05:28 UTC 2024 - 19.5K bytes - Viewed (0) -
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) -
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) -
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) -
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) -
src/testing/benchmark.go
// it is part of the implementation of the "go test" command. func RunBenchmarks(matchString func(pat, str string) (bool, error), benchmarks []InternalBenchmark) { runBenchmarks("", matchString, benchmarks) } func runBenchmarks(importPath string, matchString func(pat, str string) (bool, error), benchmarks []InternalBenchmark) bool { // If no flag was specified, don't run benchmarks.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 23.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/MoreExecutorsTest.java
* Expert Group and released to the public domain, as explained at * http://creativecommons.org/publicdomain/zero/1.0/ * Other contributors include Andrew Wright, Jeffrey Hayes, * Pat Fisher, Mike Judd. */ package com.google.common.util.concurrent; import static com.google.common.collect.Iterables.getOnlyElement; import static com.google.common.truth.Truth.assertThat;
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 28.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/MoreExecutorsTest.java
* Expert Group and released to the public domain, as explained at * http://creativecommons.org/publicdomain/zero/1.0/ * Other contributors include Andrew Wright, Jeffrey Hayes, * Pat Fisher, Mike Judd. */ package com.google.common.util.concurrent; import static com.google.common.collect.Iterables.getOnlyElement; import static com.google.common.truth.Truth.assertThat;
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 28.2K bytes - Viewed (0)