MCPcopy
hub / github.com/serverless/serverless / test

Function test

packages/sf-core/tests/python/test.js:144–161  ·  view source on GitHub ↗
(desc, func, opts = {})

Source from the content-addressed store, hash-verified

142})()
143
144const test = (desc, func, opts = {}) =>
145 testFilter(desc)(desc, opts, async (t) => {
146 setup()
147 let ended = false
148 try {
149 await func(t)
150 ended = true
151 } catch (err) {
152 t.fail(err)
153 } finally {
154 try {
155 teardown()
156 } catch (err) {
157 t.fail(err)
158 }
159 if (!ended) t.end()
160 }
161 })
162
163const availablePythons = (() => {
164 const binaries = []

Callers 15

logs.test.jsFile · 0.85
naming.test.jsFile · 0.85
index.test.jsFile · 0.85
naming.test.jsFile · 0.85
runtime.test.jsFile · 0.85
streaming.test.jsFile · 0.85
tags.test.jsFile · 0.85
code-mode.test.jsFile · 0.85

Calls 3

setupFunction · 0.85
teardownFunction · 0.85
failMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…