MCPcopy Index your code
hub / github.com/cockroachdb/errors / switchOver

Method switchOver

errbase/format_error.go:857–868  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

855}
856
857func (p *state) switchOver() {
858 if p.hasDetail {
859 return
860 }
861 p.headBuf = p.buf.Bytes()
862 p.buf = bytes.Buffer{}
863 p.notEmpty = false
864 p.hasDetail = true
865
866 // One of the newlines is accounted for in the switch over.
867 // p.needNewline -= 1
868}
869
870func (s *printer) Detail() bool {
871 return ((*state)(s)).detail()

Callers 2

WriteMethod · 0.95
detailMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected