You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: rendering mock values for recursive messages no longer crashes (#587)
Protobuf allows recursive message types, i.e. messages whose fields
are of the same type as the message itself.
message Foo {
Foo foo = 1; // Degenerate case
}
A real world example is bigquery.v2.data:RowFilter
These recursive types cause a problem when trying to render
mock values for unit tests because there's no inherent limit on
when to stop rendering nested values.
The solution in this commit is an artifical cap on the depth of
recursion in rendering mock values.
0 commit comments