| 102 | namespace { |
| 103 | |
| 104 | Status CheckOptions(const Function& function, const FunctionOptions* options) { |
| 105 | if (options == nullptr && function.doc().options_required) { |
| 106 | return Status::Invalid("Function '", function.name(), |
| 107 | "' cannot be called without options"); |
| 108 | } |
| 109 | return Status::OK(); |
| 110 | } |
| 111 | |
| 112 | } // namespace |
| 113 |
no test coverage detected