mirror of
https://github.com/derailed/k9s.git
synced 2026-10-11 21:39:54 +00:00
* update releaser * fix err messages * make pf display the correct address * fix regex filters * fix cust res loading * add container index * update deps + clean up * release v0.32.6
21 lines
439 B
Go
21 lines
439 B
Go
// SPDX-License-Identifier: Apache-2.0
|
|
// Copyright Authors of K9s
|
|
|
|
package view_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/derailed/k9s/internal/client"
|
|
"github.com/derailed/k9s/internal/view"
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestContainerNew(t *testing.T) {
|
|
c := view.NewContainer(client.NewGVR("containers"))
|
|
|
|
assert.Nil(t, c.Init(makeCtx()))
|
|
assert.Equal(t, "Containers", c.Name())
|
|
assert.Equal(t, 19, len(c.Hints()))
|
|
}
|