MCPcopy
hub / github.com/docker/docker-agent / String

Method String

pkg/concurrent/buffer.go:25–29  ·  view source on GitHub ↗

String returns the buffered content.

()

Source from the content-addressed store, hash-verified

23
24// String returns the buffered content.
25func (b *Buffer) String() string {
26 b.mu.Lock()
27 defer b.mu.Unlock()
28 return b.buf.String()
29}
30
31// Bytes returns a copy of the buffered content as a byte slice.
32// The returned slice is safe to retain and modify.

Callers 15

TestConsole_debugFunction · 0.95
TestConsole_infoFunction · 0.95
TestConsole_logFunction · 0.95
TestConsole_traceFunction · 0.95
TestConsole_warnFunction · 0.95
TestConsole_errorFunction · 0.95
TestAskpass_RoundTripFunction · 0.95
TestAskpass_DeclineFunction · 0.95
TestAskpass_BadTokenFunction · 0.95
gitFunction · 0.95

Calls 2

LockMethod · 0.45
UnlockMethod · 0.45

Tested by 15

TestConsole_debugFunction · 0.76
TestConsole_infoFunction · 0.76
TestConsole_logFunction · 0.76
TestConsole_traceFunction · 0.76
TestConsole_warnFunction · 0.76
TestConsole_errorFunction · 0.76
TestAskpass_RoundTripFunction · 0.76
TestAskpass_DeclineFunction · 0.76
TestAskpass_BadTokenFunction · 0.76
TestBuffer_WriteFunction · 0.76