- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 536 for NegExp (1.94 sec)
-
pkg/bootstrap/instance_test.go
delete(got.Node.Metadata.Fields, annotation.SidecarStatsInclusionRegexps.Name) delete(want.Node.Metadata.Fields, annotation.SidecarStatsInclusionRegexps.Name) } type regexReplacement struct { pattern *regexp.Regexp replacement []byte } // correctForEnvDifference corrects the portions of a generated bootstrap config that vary depending on the environment // so that they match the golden file's expected value.
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu May 16 17:05:28 UTC 2024 - 19.5K bytes - Viewed (0) -
istioctl/pkg/kubeinject/kubeinject_test.go
// limitations under the License. package kubeinject import ( "fmt" "regexp" "strings" "testing" "istio.io/istio/istioctl/pkg/cli" "istio.io/istio/istioctl/pkg/util/testutil" ) func TestKubeInject(t *testing.T) { cases := []testutil.TestCase{ { // case 0 Args: []string{}, ExpectedRegexp: regexp.MustCompile(`filename not specified \(see --filename or -f\)`), WantException: true,
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 15 15:02:17 UTC 2023 - 3.4K bytes - Viewed (0) -
src/cmd/internal/obj/x86/obj6_test.go
} marker++ } r.input = "TEXT ·foo(SB),$0\n" + strings.Join(input_insns, "\n") + "\n" return r } var spaces_re *regexp.Regexp = regexp.MustCompile(`\s+`) func normalize(s string) string { return spaces_re.ReplaceAllLiteralString(strings.TrimSpace(s), " ") } func asmOutput(t *testing.T, s string) []byte {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 15 20:21:30 UTC 2022 - 4.5K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/validation/validation.go
if minUserID <= uid && uid <= maxUserID { return nil } return []string{InclusiveRangeError(minUserID, maxUserID)} } var portNameCharsetRegex = regexp.MustCompile("^[-a-z0-9]+$") var portNameOneLetterRegexp = regexp.MustCompile("[a-z]") // IsValidPortName check that the argument is valid syntax. It must be // non-empty and no more than 15 characters long. It may contain only [-a-z0-9]
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Mar 07 16:08:43 UTC 2024 - 19K bytes - Viewed (0) -
src/go/types/commentMap_test.go
// (the matching comment appears at the beginning of the file), then the // recorded position is unknown (line, col = 0, 0). // If there are no matching comments, the result is nil. func commentMap(src []byte, rx *regexp.Regexp) (res map[int][]comment) { fset := token.NewFileSet() file := fset.AddFile("", -1, len(src)) var s scanner.Scanner s.Init(file, src, nil, scanner.ScanComments)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 17 19:54:27 UTC 2023 - 3K bytes - Viewed (0) -
src/cmd/vendor/github.com/google/pprof/internal/report/shortnames.go
// See the License for the specific language governing permissions and // limitations under the License. package report import ( "regexp" "github.com/google/pprof/internal/graph" ) var sepRE = regexp.MustCompile(`::|\.`) // shortNameList returns a non-empty sequence of shortened names // (in decreasing preference) that can be used to represent name.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Nov 22 18:58:12 UTC 2022 - 1.2K bytes - Viewed (0) -
src/cmd/vendor/github.com/google/pprof/profile/legacy_java_profile.go
import ( "bytes" "fmt" "io" "path/filepath" "regexp" "strconv" "strings" ) var ( attributeRx = regexp.MustCompile(`([\w ]+)=([\w ]+)`) javaSampleRx = regexp.MustCompile(` *(\d+) +(\d+) +@ +([ x0-9a-f]*)`) javaLocationRx = regexp.MustCompile(`^\s*0x([[:xdigit:]]+)\s+(.*)\s*$`) javaLocationFileLineRx = regexp.MustCompile(`^(.*)\s+\((.+):(-?[[:digit:]]+)\)$`)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 16 15:19:53 UTC 2024 - 8.8K bytes - Viewed (0) -
src/regexp/syntax/compile.go
nullable bool // whether fragment can match empty string } type compiler struct { p *Prog } // Compile compiles the regexp into a program to be executed. // The regexp should have been simplified already (returned from re.Simplify). func Compile(re *Regexp) (*Prog, error) { var c compiler c.init() f := c.compile(re) f.out.patch(c.p, c.inst(InstMatch).i) c.p.Start = int(f.i) return c.p, nil }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 13 14:52:20 UTC 2021 - 6.8K bytes - Viewed (0) -
src/cmd/compile/internal/syntax/testing_test.go
// Copyright 2020 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package syntax import ( "fmt" "regexp" "strings" "testing" ) func TestCommentMap(t *testing.T) { const src = `/* ERROR "0:0" */ /* ERROR "0:0" */ // ERROR "0:0" // ERROR "0:0" x /* ERROR "3:1" */ // ignore automatically inserted semicolon here
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 17 19:53:18 UTC 2023 - 1.4K bytes - Viewed (0) -
test/fixedbugs/issue7690.go
package main import ( "bytes" "regexp" "runtime" "strconv" ) func main() { buf1 := make([]byte, 1000) buf2 := make([]byte, 1000) runtime.Stack(buf1, false) // CALL is last instruction on this line n := runtime.Stack(buf2, false) // CALL is followed by load of result from stack buf1 = buf1[:bytes.IndexByte(buf1, 0)] buf2 = buf2[:n]
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 02 13:43:18 UTC 2016 - 1.2K bytes - Viewed (0)