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
T Client::Foo(FooRequest const& request, Options options);
T Connection::Foo(FooReqeust const& request);
Customers can verify they are giving the right request to our library. They cannot verify that they are giving the right options to our library.
voidMakeClientCall() {
// This function can be unit tested by customersauto options = MakeCallOptions();
// But they can never catch the difference between:
client.Foo(req, options);
// and...
client.Foo(req); // oops I forgot to include the options.
}
Our APIs look like:
Customers can verify they are giving the right
request
to our library. They cannot verify that they are giving the rightoptions
to our library.I think the solution is to add:
The text was updated successfully, but these errors were encountered: