MCPcopy
hub / github.com/gotify/server / mustOpen

Function mustOpen

api/application_test.go:694–700  ·  view source on GitHub ↗
(f string)

Source from the content-addressed store, hash-verified

692}
693
694func mustOpen(f string) *os.File {
695 r, err := os.Open(f)
696 if err != nil {
697 panic(err)
698 }
699 return r
700}
701
702func fakeImage(t *testing.T, path string) {
703 data, err := os.ReadFile("../test/assets/image.png")

Calls 1

OpenMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…