Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 536 for NegExp (6.09 sec)

  1. src/net/lookup_windows_test.go

    // license that can be found in the LICENSE file.
    
    package net
    
    import (
    	"cmp"
    	"context"
    	"encoding/json"
    	"errors"
    	"fmt"
    	"internal/testenv"
    	"os/exec"
    	"reflect"
    	"regexp"
    	"slices"
    	"strings"
    	"syscall"
    	"testing"
    )
    
    var nslookupTestServers = []string{"mail.golang.com", "gmail.com"}
    var lookupTestIPs = []string{"8.8.8.8", "1.1.1.1"}
    
    func toJson(v any) string {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  2. pkg/test/framework/tools/featuresgen/cmd/root.go

    		Run: func(cmd *cobra.Command, args []string) {
    			createLabelsFile()
    		},
    	}
    
    	alphanumericRegex = regexp.MustCompile(`[^a-zA-Z0-9-]`)
    	dotsRegex         = regexp.MustCompile(`[\.]`)
    	replaceDashRegex  = regexp.MustCompile(`-(.)`)
    )
    
    func Execute() {
    	if err := rootCmd.Execute(); err != nil {
    		fmt.Println("Error running featuresgen:")
    		panic(err)
    	}
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 25 19:30:47 UTC 2022
    - 5.4K bytes
    - Viewed (0)
  3. pkg/config/labels/instance.go

    	dnsNamePrefixMaxLength = 253
    )
    
    var (
    	tagRegexp            = regexp.MustCompile("^(" + dnsNamePrefixFmt + ")?(" + qualifiedNameFmt + ")$") // label value can be an empty string
    	labelValueRegexp     = regexp.MustCompile("^" + "(" + qualifiedNameFmt + ")?" + "$")
    	dns1123LabelRegexp   = regexp.MustCompile("^" + dns1123LabelFmt + "$")
    	wildcardPrefixRegexp = regexp.MustCompile("^" + wildcardPrefix + "$")
    )
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 16 06:54:36 UTC 2023
    - 5K bytes
    - Viewed (0)
  4. src/regexp/syntax/simplify_test.go

    }
    
    func TestSimplify(t *testing.T) {
    	for _, tt := range simplifyTests {
    		re, err := Parse(tt.Regexp, MatchNL|Perl&^OneLine)
    		if err != nil {
    			t.Errorf("Parse(%#q) = error %v", tt.Regexp, err)
    			continue
    		}
    		s := re.Simplify().String()
    		if s != tt.Simple {
    			t.Errorf("Simplify(%#q) = %#q, want %#q", tt.Regexp, s, tt.Simple)
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 16 16:02:30 UTC 2023
    - 4K bytes
    - Viewed (0)
  5. src/net/netip/inlining_test.go

    import (
    	"internal/testenv"
    	"os/exec"
    	"regexp"
    	"runtime"
    	"strings"
    	"testing"
    )
    
    func TestInlining(t *testing.T) {
    	testenv.MustHaveGoBuild(t)
    	t.Parallel()
    	out, err := exec.Command(
    		testenv.GoToolPath(t),
    		"build",
    		"--gcflags=-m",
    		"net/netip").CombinedOutput()
    	if err != nil {
    		t.Fatalf("go build: %v, %s", err, out)
    	}
    	got := map[string]bool{}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 17:10:01 UTC 2024
    - 2K bytes
    - Viewed (0)
  6. pkg/util/shellescape/quote.go

    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package shellescape
    
    import (
    	"regexp"
    	"strings"
    )
    
    var unsafeValue = regexp.MustCompile(`[^\\w@%+=:,./-]`)
    
    func Quote(s string) string {
    	// ported from https://github.com/chrissimpkins/shellescape/blob/master/lib/shellescape/main.py
    	if len(s) == 0 {
    		return "''"
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Dec 07 20:37:19 UTC 2020
    - 968 bytes
    - Viewed (0)
  7. src/cmd/compile/internal/test/inl_test.go

    	go func() {
    		cmdErr <- cmd.Run()
    		pw.Close()
    	}()
    	scanner := bufio.NewScanner(pr)
    	curPkg := ""
    	canInline := regexp.MustCompile(`: can inline ([^ ]*)`)
    	haveInlined := regexp.MustCompile(`: inlining call to ([^ ]*)`)
    	cannotInline := regexp.MustCompile(`: cannot inline ([^ ]*): (.*)`)
    	for scanner.Scan() {
    		line := scanner.Text()
    		if strings.HasPrefix(line, "# ") {
    			curPkg = line[2:]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 09 04:07:57 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  8. test/fixedbugs/issue9355.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package main
    
    import (
    	"fmt"
    	"io/ioutil"
    	"os"
    	"os/exec"
    	"path/filepath"
    	"regexp"
    )
    
    func main() {
    	err := os.Chdir(filepath.Join("fixedbugs", "issue9355.dir"))
    	check(err)
    
    	f, err := ioutil.TempFile("", "issue9355-*.o")
    	if err != nil {
    		fmt.Println(err)
    		os.Exit(1)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/syntax/testing.go

    // 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 io.Reader, rx *regexp.Regexp) (res map[uint][]Error) {
    	// position of previous token
    	var base *PosBase
    	var prev struct{ line, col uint }
    
    	var s scanner
    	s.init(src, func(_, _ uint, text string) {
    		if text[0] != '/' {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:53:18 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  10. istioctl/pkg/validate/validate_test.go

    		os.RemoveAll(tempDirJSON)
    		os.RemoveAll(validTempDirJSON)
    	})
    
    	cases := []struct {
    		name           string
    		args           []string
    		wantError      bool
    		expectedRegexp *regexp.Regexp // Expected regexp output
    	}{
    		{
    			name:      "valid port naming service",
    			args:      []string{"--filename", validPortNamingSvcFile},
    			wantError: false,
    		},
    		{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jul 25 08:08:36 UTC 2023
    - 21.5K bytes
    - Viewed (0)
Back to top