github.1git.de/docker/cli@v26.1.3+incompatible/cli/command/context/show_test.go (about)

     1  package context
     2  
     3  import (
     4  	"testing"
     5  
     6  	"gotest.tools/v3/golden"
     7  )
     8  
     9  func TestShow(t *testing.T) {
    10  	cli := makeFakeCli(t)
    11  	createTestContext(t, cli, "current")
    12  	cli.SetCurrentContext("current")
    13  
    14  	cli.OutBuffer().Reset()
    15  	runShow(cli)
    16  	golden.Assert(t, cli.OutBuffer().String(), "show.golden")
    17  }