Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for parseMatcher (0.32 sec)

  1. src/internal/trace/testtrace/expectation.go

    				return exp, fmt.Errorf("bad header line for FAILURE: %q", s.Text())
    			}
    			matcher, err := parseMatcher(c[1])
    			if err != nil {
    				return exp, err
    			}
    			exp.errorMatcher = matcher
    		default:
    			return exp, fmt.Errorf("bad header line: %q", s.Text())
    		}
    		return exp, nil
    	}
    	return exp, s.Err()
    }
    
    func parseMatcher(quoted string) (*regexp.Regexp, error) {
    	pattern, err := strconv.Unquote(quoted)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 2.3K bytes
    - Viewed (0)
Back to top