MCPcopy Create free account
hub / github.com/encodeous/nylon / Accept

Method Accept

e2e/logging.go:174–183  ·  view source on GitHub ↗
(l testcontainers.Log)

Source from the content-addressed store, hash-verified

172}
173
174func (c *UnifiedLogConsumer) Accept(l testcontainers.Log) {
175 source := SourceStdout
176 if l.LogType == "stderr" {
177 source = SourceStderr
178 }
179 content := StripAnsi(string(l.Content))
180 ts := time.Since(c.Manager.start).Truncate(time.Millisecond)
181 fmt.Printf("[+%s][%s:%s] %s", ts, c.Node, source, content)
182 c.Manager.Accept(c.Node, source, content)
183}

Callers

nothing calls this directly

Calls 2

StripAnsiFunction · 0.85
AcceptMethod · 0.45

Tested by

no test coverage detected