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

Function fakePicture

pkg/importer/flickr/testdata.go:279–288  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

277}
278
279func fakePicture() string {
280 srcRoot, err := osutil.PkSourceRoot()
281 if err == os.ErrNotExist {
282 log.Fatal("Directory \"perkeep.org\" not found under GOPATH/src; are you not running with devcam?")
283 }
284 if err != nil {
285 log.Fatalf("source root folder not found: %v", err)
286 }
287 return filepath.Join(srcRoot, filepath.FromSlash("clients/web/embed/glitch/npc_piggy__x1_walk_png_1354829432.png"))
288}

Callers 1

MakeTestDataMethod · 0.70

Calls 3

PkSourceRootFunction · 0.92
FatalMethod · 0.80
FatalfMethod · 0.65

Tested by

no test coverage detected