HasPayload returns true if the function has a non-empty payload.
()
| 97 | |
| 98 | // HasPayload returns true if the function has a non-empty payload. |
| 99 | func (f Function) HasPayload() bool { |
| 100 | return len(f.fn.Payload) > 0 |
| 101 | } |
| 102 | |
| 103 | // ValidateArgs checks if the function has at least the required number of arguments. |
| 104 | // Returns an error with a descriptive message if validation fails. |
no outgoing calls
no test coverage detected