(objectName, functionName string)
| 477 | } |
| 478 | |
| 479 | func (m *moduleDef) GetObjectFunction(objectName, functionName string) (*modFunction, error) { |
| 480 | fp := m.GetFunctionProvider(objectName) |
| 481 | if fp == nil { |
| 482 | return nil, fmt.Errorf("module %q does not have a %q object or interface", m.Name, objectName) |
| 483 | } |
| 484 | return m.GetFunction(fp, functionName) |
| 485 | } |
| 486 | |
| 487 | func (m *moduleDef) GetFunction(fp functionProvider, functionName string) (*modFunction, error) { |
| 488 | for _, fn := range fp.GetFunctions() { |
no test coverage detected