MCPcopy Create free account
hub / github.com/apache/openwhisk-cli / CreateFile

Function CreateFile

tests/src/integration/common/utils.go:48–57  ·  view source on GitHub ↗
(filePath string)

Source from the content-addressed store, hash-verified

46}
47
48func CreateFile(filePath string) {
49 var _, err = os.Stat(filePath)
50
51 if os.IsNotExist(err) {
52 var file, err = os.Create(filePath)
53 checkError(err)
54 defer file.Close()
55 }
56 return
57}
58
59func ReadFile(filePath string) string {
60 var file, err = os.OpenFile(filePath, os.O_RDWR, 0644)

Callers 11

TestShowAPIBuildVersionFunction · 0.92
TestRejectAuthCommNoKeyFunction · 0.92
TestDefaultNamespaceFunction · 0.92
TestSetAuthFunction · 0.92
TestSetMultipleValuesFunction · 0.92
TestRejectBadCommFunction · 0.92

Calls 2

checkErrorFunction · 0.85
CreateMethod · 0.80

Tested by 11

TestShowAPIBuildVersionFunction · 0.74
TestRejectAuthCommNoKeyFunction · 0.74
TestDefaultNamespaceFunction · 0.74
TestSetAuthFunction · 0.74
TestSetMultipleValuesFunction · 0.74
TestRejectBadCommFunction · 0.74