googleapis / gapic-generator-go

Generate Go API client libraries from Protocol Buffers.
Apache License 2.0
252 stars 48 forks source link

internal/testing: add package with sample testdata #1512

Open julieqiu opened 5 months ago

julieqiu commented 5 months ago

There are several places where we need sample values for testing, which are currently constructed within the scope of an individual unit test.

We should add a package that provides sample values for use in tests. The intent is to make it easier to reason about the various test cases by using one example. Additionally, we can document the meaning for these various values.

This implementation was started in https://github.com/googleapis/gapic-generator-go/pull/1508.