MCPcopy
hub / github.com/prometheus/pushgateway / Open

Method Open

handler/misc_test.go:33–41  ·  view source on GitHub ↗

Open implements the http.FileSystem interface If a file is present, no error will be returned. This implementation always returns a nil File.

(name string)

Source from the content-addressed store, hash-verified

31// If a file is present, no error will be returned.
32// This implementation always returns a nil File.
33func (f *fakeFileSystem) Open(name string) (http.File, error) {
34 log.Println("requesting" + name)
35
36 if _, ok := f.files[name]; !ok {
37 return nil, os.ErrNotExist
38 }
39 return os.Open("misc_test.go")
40 // return nil, nil
41}
42
43func TestRoutePrefixForStatic(t *testing.T) {
44 fs := &fakeFileSystem{map[string]struct{}{

Callers 1

StatusFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected