MCPcopy
hub / github.com/minio/minio-go / executable

Function executable

pkg/singleflight/singleflight_test.go:289–304  ·  view source on GitHub ↗
(t testing.TB)

Source from the content-addressed store, hash-verified

287}
288
289func executable(t testing.TB) string {
290 exe, err := os.Executable()
291 if err != nil {
292 t.Skipf("skipping: test executable not found")
293 }
294
295 // Control case: check whether exec.Command works at all.
296 // (For example, it might fail with a permission error on iOS.)
297 cmd := exec.Command(exe, "-test.list=^$")
298 cmd.Env = []string{}
299 if err := cmd.Run(); err != nil {
300 t.Skipf("skipping: exec appears not to work on %s: %v", runtime.GOOS, err)
301 }
302
303 return exe
304}
305
306func TestPanicDoChan(t *testing.T) {
307 if os.Getenv("TEST_PANIC_DOCHAN") != "" {

Callers 2

TestPanicDoChanFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected