MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / ValidateFunctions

Function ValidateFunctions

db/functions/function.go:94–97  ·  view source on GitHub ↗

Validates a FunctionsConfig.

(ctx context.Context, config FunctionsConfig)

Source from the content-addressed store, hash-verified

92
93// Validates a FunctionsConfig.
94func ValidateFunctions(ctx context.Context, config FunctionsConfig) error {
95 _, err := CompileFunctions(ctx, config)
96 return err
97}
98
99// Creates a functionImpl from a UserFunctionConfig.
100func compileFunction(ctx context.Context, name string, typeName string, fnConfig *FunctionConfig) (*functionImpl, error) {

Callers 1

validateVersionMethod · 0.92

Calls 1

CompileFunctionsFunction · 0.85

Tested by

no test coverage detected