Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for FindSubmatch (0.25 sec)

  1. src/cmd/go/testdata/script/test_fuzz_minimize_interesting.txt

    		data, err := ioutil.ReadFile(filepath.Join(dir, f.Name()))
    		if err != nil {
    			panic(err)
    		}
    		var containsVal bool
    		for _, line := range bytes.Split(data, []byte("\n")) {
    			m := valRe.FindSubmatch(line)
    			if m == nil {
    				continue
    			}
    			containsVal = true
    			s, err := strconv.Unquote(string(m[1]))
    			if err != nil {
    				panic(err)
    			}
    			if len(s) != wantLen {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 05 23:35:32 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  2. src/cmd/go/testdata/script/test_fuzz_minimize_dirty_cov.txt

    )
    
    func checkFile(name, expected string) (bool, error) {
    	data, err := os.ReadFile(name)
    	if err != nil {
    		return false, err
    	}
    	for _, line := range bytes.Split(data, []byte("\n")) {
    		m := valRe.FindSubmatch(line)
    		if m == nil {
    			continue
    		}
    		fmt.Println(strconv.Unquote(string(m[1])))
    		if s, err := strconv.Unquote(string(m[1])); err != nil {
    			return false, err
    		} else if s == expected {
    			return true, nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 27 01:16:19 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  3. src/cmd/cgo/internal/swig/swig_test.go

    	if err != nil {
    		t.Skipf("failed to get swig version:%s\n%s", err, string(out))
    	}
    
    	re := regexp.MustCompile(`[vV]ersion +(\d+)([.]\d+)?([.]\d+)?`)
    	matches := re.FindSubmatch(out)
    	if matches == nil {
    		// Can't find version number; hope for the best.
    		t.Logf("failed to find swig version, continuing")
    		return
    	}
    
    	var parseError error
    	atoi := func(s string) int {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 12:38:14 UTC 2024
    - 4K bytes
    - Viewed (0)
  4. src/runtime/debug_test.go

    	status, err := os.ReadFile(fmt.Sprintf("/proc/%d/status", pid))
    	if err != nil {
    		t.Logf("couldn't get proc tracer: %s", err)
    		return
    	}
    	re := regexp.MustCompile(`TracerPid:\s+([0-9]+)`)
    	sub := re.FindSubmatch(status)
    	if sub == nil {
    		t.Logf("couldn't find proc tracer PID")
    		return
    	}
    	if string(sub[1]) == "0" {
    		return
    	}
    	t.Skip("test will deadlock under a debugger")
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 15:08:04 UTC 2023
    - 8K bytes
    - Viewed (0)
Back to top