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

Method StringIndented

libs/bits/bit_array.go:307–314  ·  view source on GitHub ↗

StringIndented returns the same thing as String(), but applies the indent at every 10th bit, and twice at every 50th bit.

(indent string)

Source from the content-addressed store, hash-verified

305// StringIndented returns the same thing as String(), but applies the indent
306// at every 10th bit, and twice at every 50th bit.
307func (bA *BitArray) StringIndented(indent string) string {
308 if bA == nil {
309 return "nil-BitArray"
310 }
311 bA.mtx.Lock()
312 defer bA.mtx.Unlock()
313 return bA.stringIndented(indent)
314}
315
316func (bA *BitArray) stringIndented(indent string) string {
317 lines := []string{}

Callers 1

StringMethod · 0.95

Calls 3

stringIndentedMethod · 0.95
LockMethod · 0.65
UnlockMethod · 0.65

Tested by

no test coverage detected