MCPcopy Create free account
hub / github.com/dlclark/regexp2 / parseRustRegexString

Function parseRustRegexString

regexp_corpus_rust_test.go:303–310  ·  view source on GitHub ↗
(t *testing.T, raw string)

Source from the content-addressed store, hash-verified

301}
302
303func parseRustRegexString(t *testing.T, raw string) string {
304 t.Helper()
305 s, next := parseRustRegexStringAt(t, strings.TrimSpace(raw), 0)
306 if strings.TrimSpace(raw[next:]) != "" {
307 t.Fatalf("trailing TOML string data in %q", raw)
308 }
309 return s
310}
311
312func parseRustRegexStringAt(t *testing.T, raw string, start int) (string, int) {
313 t.Helper()

Callers 2

parseRustRegexCorpusFileFunction · 0.85
parseRustRegexRegexesFunction · 0.85

Calls 1

parseRustRegexStringAtFunction · 0.85

Tested by

no test coverage detected