(v string)
| 309 | } |
| 310 | |
| 311 | func (s *truncBytesSink) SetString(v string) error { |
| 312 | if s.dst == nil { |
| 313 | return errors.New("nil TruncatingByteSliceSink *[]byte dst") |
| 314 | } |
| 315 | n := copy(*s.dst, v) |
| 316 | if n < len(*s.dst) { |
| 317 | *s.dst = (*s.dst)[:n] |
| 318 | } |
| 319 | s.v.b = nil |
| 320 | s.v.s = v |
| 321 | return nil |
| 322 | } |
nothing calls this directly
no outgoing calls
no test coverage detected