Lines Matching refs:toMatch
85 toMatch string
103 toMatch = line[4:]
105 toMatch = strings.TrimRight(toMatch, " ")
107 m = matchString(t, re, toMatch)
121 validateMatch(t, re, m, toMatch, subs[2], gIdx, capsIdx[gIdx])
152 func validateMatch(t *testing.T, re *Regexp, m *Match, toMatch, value string, idx, capIdx int) { argument
160 …roblem(t, "Expected match for pattern '%v' with input '%v', but got no match", re.pattern, toMatch)
166 …em(t, "Expected group %v does not exist in pattern '%v' with input '%v'", idx, re.pattern, toMatch)
173 …up %v in pattern '%v' with input '%v'", g[idx].Captures[capIdx].String(), idx, re.pattern, toMatch)
180 …p %v does not exist in group %v in pattern '%v' with input '%v'", capIdx, idx, re.pattern, toMatch)
187 … cap %v, group %v for pattern '%v' with input '%v'", value, escp, capIdx, idx, re.pattern, toMatch)
241 func matchString(t *testing.T, re *Regexp, toMatch string) *Match {
250 if toMatch != "\\" {
251 escp = unEscapeToMatch(toMatch)
255 problem(t, "Error matching \"%v\" in pattern \"%v\": %v", toMatch, re.pattern, err)