MCPcopy
hub / github.com/fabiolb/fabio / writeFile

Function writeFile

cert/source_test.go:674–678  ·  view source on GitHub ↗
(filename string, data []byte)

Source from the content-addressed store, hash-verified

672}
673
674func writeFile(filename string, data []byte) {
675 if err := os.WriteFile(filename, data, 0644); err != nil {
676 panic(err.Error())
677 }
678}
679
680func makeCertPool(x ...[]byte) *x509.CertPool {
681 p := x509.NewCertPool()

Callers 2

TestHTTPSourceFunction · 0.85
saveCertFunction · 0.85

Calls 1

ErrorMethod · 0.80

Tested by

no test coverage detected