repo_description: Kubescape is an open-source Kubernetes security platform for your IDE, CI/CD pipelines, and clusters. It includes risk analysis, security, compliance, and misconfiguration scanning, saving Kubernetes users and administrators precious time, effort, and resources.
repo_topics: best-practice devops kubernetes mitre-attack nsa security vulnerability-detection
code: package cmd
  
  import (
  	"context"
  	"testing"
  
  	"github.com/stretchr/testify/assert"
  )
  
  func TestNewDefaultKubescapeCommand(t *testing.T) {
  	t.Run("NewDefaultKubescapeCommand", func(t *testing.T) {
  		cmd := NewDefaultKubescapeCommand(context.Background(), "", "", "")
  		assert.NotNil(t, cmd)
  	})
  }
  
  func TestExecute(t *testing.T) {
  	t.Run("Execute", func(t *testing.T) {
  		err := Execute(context.Background(), "", "", "")
  		if err != nil {
  			assert.EqualErrorf(t, err, "unknown command \"^\\\\QTestExecute\\\\E$\" for \"kubescape\"", err.Error())
  		}
  	})
  }