MCPcopy
hub / github.com/perkeep/perkeep / fakePicture

Function fakePicture

pkg/importer/twitter/testdata.go:258–267  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

256}
257
258func fakePicture() string {
259 camliDir, err := osutil.PkSourceRoot()
260 if err == os.ErrNotExist {
261 log.Fatal("Directory \"perkeep.org\" not found under GOPATH/src; are you not running with devcam?")
262 }
263 if err != nil {
264 log.Fatalf("source root folder not found: %v", err)
265 }
266 return filepath.Join(camliDir, filepath.FromSlash("clients/web/embed/glitch/npc_piggy__x1_walk_png_1354829432.png"))
267}

Callers 1

MakeTestDataMethod · 0.70

Calls 3

PkSourceRootFunction · 0.92
FatalMethod · 0.80
FatalfMethod · 0.65

Tested by

no test coverage detected