sudorandom / fauxrpc

Easily start a fake gRPC/gRPC-Web/Connect/REST server from protobufs
https://fauxrpc.com
MIT License
75 stars 0 forks source link

Stub Errors #12

Closed sudorandom closed 1 month ago

sudorandom commented 1 month ago

It would be useful to set up a method to return a specific error. This would probably re-use the stubs.v1.StubsService/AddStubs method by adding a property to stubs.v1.Stub. Note that this only makes sense when you're mocking a method. You should be given an error if you try to mock a type with an error.

sudorandom commented 1 month ago

This is actually done!