-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: allow providing a IDGenerator function
For services with user-settable IDs, there might be requirements on how the format of that ID should look. Providing this function, i.e. it is non-nil, will call it and fill in the returned ID during creation steps. It is expected (and documented) that the function should return unique IDs. It is up to the user to fulfill this requirement. One provided example is to use a counter and include that in the ID. This feature makes it possible to use this test suite for APIs where user-settable ID is required, which wasn't possible before.
- Loading branch information
Showing
4 changed files
with
72 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 40 additions & 6 deletions
46
proto/gen/einride/example/freight/v1/freight_service_aiptest.pb.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.