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

Function missingJavaScriptFile

rest/config_test.go:1631–1636  ·  view source on GitHub ↗

missingJavaScriptFile returns a callable function that internally returns a missing JavaScript file path. The callable teardown function returned from this function is nil.

()

Source from the content-addressed store, hash-verified

1629// missingJavaScriptFile returns a callable function that internally returns a missing
1630// JavaScript file path. The callable teardown function returned from this function is nil.
1631func missingJavaScriptFile() func() (path string, teardownFn func()) {
1632 return func() (path string, teardownFn func()) {
1633 path = missingJavaScriptFilePath
1634 return path, nil
1635 }
1636}
1637
1638// inlineJavaScript returns a callable function that internally returns given JavaScript
1639// source as-is. The callable teardown function returned from this function is nil.

Calls

no outgoing calls

Tested by

no test coverage detected