github.com/nya3jp/tast@v0.0.0-20230601000426-85c8e4d83a9b/src/go.chromium.org/tast/core/internal/testing/output.go (about) 1 // Copyright 2021 The ChromiumOS Authors 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 package testing 6 7 import ( 8 "go.chromium.org/tast/core/internal/protocol" 9 ) 10 11 // OutputStream is an interface to report streamed outputs of an entity. 12 // Note that planner.OutputStream is for multiple entities in contrast. 13 type OutputStream interface { 14 // Log reports an informational log message from an entity. 15 Log(msg string) error 16 17 // Error reports an error from by an entity. An entity that reported one or 18 // more errors should be considered failure. 19 Error(e *protocol.Error) error 20 }