MCPcopy Index your code
hub / github.com/cli/cli / tempFilePath

Function tempFilePath

internal/update/update_test.go:485–492  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

483}
484
485func tempFilePath() string {
486 file, err := os.CreateTemp("", "")
487 if err != nil {
488 log.Fatal(err)
489 }
490 os.Remove(file.Name())
491 return file.Name()
492}

Callers 1

TestCheckForUpdateFunction · 0.85

Calls 2

RemoveMethod · 0.65
NameMethod · 0.65

Tested by

no test coverage detected