Resolve a route path with valid-ish param values so params validation passes.
Used when testing input on routes that also have params.
The template is read as Hono reads it (split_route_template,
parse_route_param): only a whole param segment — :name or :name{re},
optional or not — is filled, so a : inside a literal segment
(/v1/files:upload) stays, and a {re} goes with its param. An optional
param is filled too.
A value in param_values is used first, percent-encoded. Otherwise,
without a params schema (or for a param the schema doesn't name) each
param becomes test_<name> — fine for an unconstrained segment. With
one, test_<name> is still preferred wherever the field schema accepts
it, because the param name in the URL is what makes a failure message
readable. Only a segment that refuses it falls through: a uuid param
takes the nil UUID (the fast path — by far the most common shape), and
anything else is synthesized by generate_valid_string, so a
format-constrained segment (a blake3:… fact hash, a tok_… id)
resolves to a value its schema accepts instead of a test_<name> that
400s before the route's real gates run. The synthesized value is
percent-encoded, and a value containing / is refused (it would silently
add a path segment and route elsewhere) — both fall back to test_<name>.
A {re} param's value, supplied or not, must match its pattern, grouped
and anchored as Hono's RegExpRouter reads it — the stricter of its
routers' readings, as TrieRouter leaves a top-level alternation ungrouped
(compile_route_param_pattern, over the value as Hono decodes it,
decode_route_path) — or the request would reach no route; no value is
guessed from the pattern. A supplied value the URL would normalize away
('', ., ..) is refused by name.