MCPcopy Create free account
hub / github.com/prometheus/common / Open

Method Open

server/static_file_server_test.go:24–26  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

22type dummyFileSystem struct{}
23
24func (fs dummyFileSystem) Open(path string) (http.File, error) {
25 return http.Dir(".").Open(".")
26}
27
28func TestServeHttp(t *testing.T) {
29 cases := []struct {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected