MCPcopy
hub / github.com/containers/toolbox / TestPathExists

Function TestPathExists

src/pkg/utils/utils_test.go:366–375  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

364}
365
366func TestPathExists(t *testing.T) {
367 path, err := os.Executable()
368 assert.NoError(t, err)
369 exists := PathExists(path)
370 assert.True(t, exists)
371
372 path = "/does/not/exist"
373 exists = PathExists(path)
374 assert.False(t, exists)
375}

Callers

nothing calls this directly

Calls 1

PathExistsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…