18 lines
381 B
Go
18 lines
381 B
Go
package view_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/derailed/k9s/internal/resource"
|
|
"github.com/derailed/k9s/internal/view"
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestContainerNew(t *testing.T) {
|
|
po := view.NewContainer("fred/p1", resource.NewContainerList(nil, nil))
|
|
po.Init(makeCtx())
|
|
|
|
assert.Equal(t, "Containers", po.Name())
|
|
assert.Equal(t, 19, len(po.Hints()))
|
|
}
|