(Debug) Description of case paths, e.g. to form expectation error messages? #222
Unanswered
DivineDominion
asked this question in
Q&A
Replies: 1 comment
-
@DivineDominion Key path descriptions are generated by Swift itself, and we unfortunately don't really have the ability to override it here. That said, one could potentially modify the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Given
I'd love to get a string from
\Foo.Cases.bar
forError
messages for failed expectations that don't render as:But say something like
However, I couldn't see how
EnumReflection
could be used from client code (mine) to get to atag
and thencaseName
.A
...<Foo,Int>
(aka getting to the type of the associated value, if any) is not enough, so I wonder what options there might be.Beta Was this translation helpful? Give feedback.
All reactions