1 // Copyright 2020 The Kubernetes Authors. 2 // SPDX-License-Identifier: Apache-2.0 3 4 package json 5 6 import ( 7 "testing" 8 9 "k8s.io/cli-runtime/pkg/genericclioptions" 10 "sigs.k8s.io/cli-utils/pkg/printers/printer" 11 printertesting "sigs.k8s.io/cli-utils/pkg/printers/testutil" 12 ) 13 14 func TestPrint(t *testing.T) { 15 printertesting.PrintResultErrorTest(t, func() printer.Printer { 16 ioStreams, _, _, _ := genericclioptions.NewTestIOStreams() 17 return NewPrinter(ioStreams) 18 }) 19 } 20