MCPcopy Create free account
hub / github.com/perkeep/perkeep / init

Function init

pkg/search/handler_test.go:94–108  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

92}
93
94func init() {
95 ownerRef = indextest.PubKey
96 owner = index.NewOwner(indextest.KeyID, ownerRef.BlobRef())
97 signer = testSigner()
98 for _, v := range testBlobsContents {
99 testBlobs[v] = &test.Blob{Contents: v}
100 }
101 perma123 := schema.NewPlannedPermanode("perma-123")
102 perma123signed, err := perma123.SignAt(ctxbg, signer, test.ClockOrigin)
103 if err != nil {
104 panic(err)
105 }
106 testBlobs["perma-123"] = &test.Blob{Contents: perma123signed}
107 handlerTests = initTests()
108}
109
110var (
111 testBlobsContents = []string{

Callers

nothing calls this directly

Calls 7

NewOwnerFunction · 0.92
NewPlannedPermanodeFunction · 0.92
testSignerFunction · 0.85
initTestsFunction · 0.85
checkNoDupsFunction · 0.85
SignAtMethod · 0.80
BlobRefMethod · 0.65

Tested by

no test coverage detected