HasFunction returns whether the function is present.
(ctx context.Context, funcID id.Function)
| 101 | |
| 102 | // HasFunction returns whether the function is present. |
| 103 | func (pgf *Collection) HasFunction(ctx context.Context, funcID id.Function) bool { |
| 104 | _, ok := pgf.accessCache[funcID] |
| 105 | return ok |
| 106 | } |
| 107 | |
| 108 | // AddFunction adds a new function. |
| 109 | func (pgf *Collection) AddFunction(ctx context.Context, f Function) error { |
no outgoing calls
no test coverage detected