17 lines
307 B
Go
17 lines
307 B
Go
package view_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/derailed/k9s/internal/view"
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestPortForwardNew(t *testing.T) {
|
|
po := view.NewPortForward("", "", nil)
|
|
po.Init(makeCtx())
|
|
|
|
assert.Equal(t, "PortForwards", po.Name())
|
|
assert.Equal(t, 15, len(po.Hints()))
|
|
}
|