MCPcopy Create free account
hub / github.com/brimdata/super / Open

Function Open

pkg/fs/open_windows.go:42–44  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

40}
41
42func Open(name string) (*os.File, error) {
43 return OpenFile(name, os.O_RDONLY, 0)
44}
45
46func Create(name string) (*os.File, error) {
47 return OpenFile(name, os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0666)

Callers 5

TestValidFunction · 0.92
TestInvalidFunction · 0.92
parseFunction · 0.92
RunMethod · 0.92
ReadFileFunction · 0.70

Calls 1

OpenFileFunction · 0.70

Tested by 3

TestValidFunction · 0.74
TestInvalidFunction · 0.74
parseFunction · 0.74