MCPcopy
hub / github.com/perkeep/perkeep / createTestInclude

Function createTestInclude

internal/osutil/paths_test.go:30–38  ·  view source on GitHub ↗

Creates a file with the content "test" at path

(path string)

Source from the content-addressed store, hash-verified

28
29// Creates a file with the content "test" at path
30func createTestInclude(path string) error {
31 // Create a config file for OpenCamliInclude to play with
32 cf, e := os.Create(path)
33 if e != nil {
34 return e
35 }
36 fmt.Fprintf(cf, "test")
37 return cf.Close()
38}
39
40func findCamliInclude(configFile string) (path string, err error) {
41 return NewJSONConfigParser().ConfigFilePath(configFile)

Callers 3

TestOpenCamliIncludeCWDFunction · 0.85
TestOpenCamliIncludeDirFunction · 0.85
TestOpenCamliIncludePathFunction · 0.85

Calls 2

CreateMethod · 0.80
CloseMethod · 0.65

Tested by

no test coverage detected