plugins/noop: return a helpful message for test authors

Signed-off-by: Gabe Rosenhouse <grosenhouse@pivotal.io>
This commit is contained in:
Konstantinos Karampogias
2016-10-27 10:47:04 -07:00
committed by Gabe Rosenhouse
parent b0808a006a
commit accac60053
3 changed files with 29 additions and 3 deletions

View File

@ -22,6 +22,8 @@ import (
"github.com/containernetworking/cni/pkg/skel"
)
const EmptyReportResultMessage = "set debug.ReportResult and call debug.WriteDebug() before calling this plugin"
// Debug is used to control and record the behavior of the noop plugin
type Debug struct {
// Report* fields allow the test to control the behavior of the no-op plugin