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

Function readFile

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

Source from the content-addressed store, hash-verified

2073}
2074
2075func readFile(t *testing.T, filename string) string {
2076 t.Helper()
2077
2078 content, err := os.ReadFile(filename)
2079 if err != nil {
2080 t.Fatalf("Failed to read file %q: %s", filename, err)
2081 }
2082
2083 return string(content)
2084}

Callers 2

TestTLSConfigInvalidCAFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected