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

Function readFile

config/http_config_test.go:2667–2674  ·  view source on GitHub ↗
(t *testing.T, filename string)

Source from the content-addressed store, hash-verified

2665}
2666
2667func readFile(t *testing.T, filename string) string {
2668 t.Helper()
2669
2670 content, err := os.ReadFile(filename)
2671 require.NoErrorf(t, err, "Failed to read file %q: %s", filename, err)
2672
2673 return string(content)
2674}
2675
2676func TestHeaders(t *testing.T) {
2677 ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {

Callers 2

TestTLSConfigInvalidCAFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…