Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information