MCPcopy Create free account
hub / github.com/tendermint/tendermint / StringShort

Method StringShort

types/part_set.go:351–358  ·  view source on GitHub ↗

StringShort returns a short version of String. (Count of Total)

()

Source from the content-addressed store, hash-verified

349//
350// (Count of Total)
351func (ps *PartSet) StringShort() string {
352 if ps == nil {
353 return "nil-PartSet"
354 }
355 ps.mtx.Lock()
356 defer ps.mtx.Unlock()
357 return fmt.Sprintf("(%v of %v)", ps.Count(), ps.Total())
358}
359
360func (ps *PartSet) MarshalJSON() ([]byte, error) {
361 if ps == nil {

Callers

nothing calls this directly

Calls 4

CountMethod · 0.95
TotalMethod · 0.95
LockMethod · 0.65
UnlockMethod · 0.65

Tested by

no test coverage detected