MCPcopy
hub / github.com/moby/moby / testJSONStreamDecoder

Struct testJSONStreamDecoder

daemon/logger/loggerutils/logfile_test.go:54–56  ·  view source on GitHub ↗

tetsJSONStreamDecoder is used as an easy way to test how [SyntaxError]s are handled in the log reader.

Source from the content-addressed store, hash-verified

52// tetsJSONStreamDecoder is used as an easy way to test how [SyntaxError]s are
53// handled in the log reader.
54type testJSONStreamDecoder struct {
55 dec *json.Decoder
56}
57
58func (d *testJSONStreamDecoder) Decode() (*logger.Message, error) {
59 var m logger.Message

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected