Expand description
Language-specific string escaping for e2e test code generation.
Functions§
- escape_
c - Escape a string for embedding in a C string literal.
- escape_
csharp - Escape a string for embedding in a C# string literal.
- escape_
elixir - Escape a string for embedding in an Elixir string literal.
- escape_
go - Escape a string for embedding in a Go double-quoted string.
- escape_
java - Escape a string for embedding in a Java string literal.
- escape_
js - Escape a string for embedding in a JavaScript/TypeScript double-quoted string literal.
- escape_
js_ template - Escape a string for embedding in a JavaScript/TypeScript template literal (backtick string).
- escape_
php - Escape a string for embedding in a PHP string literal.
- escape_
python - Escape a string for embedding in a Python string literal.
- escape_
r - Escape a string for embedding in an R string literal.
- escape_
ruby - Escape a string for embedding in a double-quoted Ruby string literal.
- escape_
ruby_ single - Escape a string for embedding in a single-quoted Ruby string literal.
Single-quoted Ruby strings only interpret
\\and\'. - escape_
rust - Escape a string for embedding in a Rust string literal.
- escape_
shell - Escape a string for embedding in a POSIX single-quoted shell string literal.
- go_
string_ literal - Format a string as a Go string literal (backtick or quoted).
- raw_
string_ hashes - Compute the number of # needed for a Rust raw string literal.
- ruby_
needs_ double_ quotes - Returns true if the string needs double quotes (contains control characters that require escape sequences only available in double-quoted strings).
- ruby_
string_ literal - Format a string as a Ruby literal, preferring single quotes.
- rust_
raw_ string - Format a string as a Rust raw string literal (r#“…”#).
- sanitize_
filename - Convert a category name to a sanitized filename component.
- sanitize_
ident - Sanitize an identifier for use as a test function name. Replaces non-alphanumeric characters with underscores, strips leading digits.