MCPcopy
hub / github.com/perkeep/perkeep / SetShareIsTransitive

Method SetShareIsTransitive

pkg/schema/blob.go:406–416  ·  view source on GitHub ↗
(b bool)

Source from the content-addressed store, hash-verified

404}
405
406func (bb *Builder) SetShareIsTransitive(b bool) *Builder {
407 if bb.Type() != TypeClaim || bb.ClaimType() != ShareClaim {
408 panic("called SetShareIsTransitive on non-share")
409 }
410 if !b {
411 delete(bb.m, "transitive")
412 } else {
413 bb.m["transitive"] = true
414 }
415 return bb
416}
417
418// SetRawStringField sets a raw string field in the underlying map.
419func (bb *Builder) SetRawStringField(key, value string) *Builder {

Calls 3

TypeMethod · 0.95
ClaimTypeMethod · 0.95
deleteFunction · 0.85

Tested by 5

TestHandleGetViaSharingFunction · 0.64
TestHandleShareDeletionFunction · 0.64