WithAPICallFunc returns a copy of the parent context that will cause API calls to invoke f instead of their normal operation. This is intended for advanced users only.
(ctx context.Context, f APICallFunc)
| 126 | // |
| 127 | // This is intended for advanced users only. |
| 128 | func WithAPICallFunc(ctx context.Context, f APICallFunc) context.Context { |
| 129 | return internal.WithCallOverride(ctx, internal.CallOverrideFunc(f)) |
| 130 | } |
| 131 | |
| 132 | // APICall performs an API call. |
| 133 | // |
nothing calls this directly
no test coverage detected
searching dependent graphs…