(t *testing.T)
| 29 | } |
| 30 | |
| 31 | func TestList(t *testing.T) { |
| 32 | cli := makeFakeCli(t) |
| 33 | createTestContexts(t, cli, "current", "other", "unset") |
| 34 | cli.SetCurrentContext("current") |
| 35 | cli.OutBuffer().Reset() |
| 36 | assert.NilError(t, runList(cli, &listOptions{})) |
| 37 | golden.Assert(t, cli.OutBuffer().String(), "list.golden") |
| 38 | } |
| 39 | |
| 40 | func TestListJSON(t *testing.T) { |
| 41 | cli := makeFakeCli(t) |
nothing calls this directly
no test coverage detected
searching dependent graphs…