MCPcopy Index your code
hub / github.com/perkeep/perkeep / entityString

Function entityString

pkg/jsonsign/jsonsign_test.go:231–243  ·  view source on GitHub ↗

stupid entity stringier for testing.

(ent *openpgp.Entity)

Source from the content-addressed store, hash-verified

229
230// stupid entity stringier for testing.
231func entityString(ent *openpgp.Entity) string {
232 var buf bytes.Buffer
233 fmt.Fprintf(&buf, "PublicKey=%s", ent.PrimaryKey.KeyIdShortString())
234 var ids []string
235 for k := range ent.Identities {
236 ids = append(ids, k)
237 }
238 sort.Strings(ids)
239 for _, k := range ids {
240 fmt.Fprintf(&buf, " id[%q]", k)
241 }
242 return buf.String()
243}

Callers 1

TestWriteKeyRingFunction · 0.85

Calls 1

StringMethod · 0.45

Tested by

no test coverage detected