You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: ls_command_test.go
    path of file: ./repos/grafana/pkg/cmd/grafana-cli/commands
    
    the code of the file until where you have to start completion: package commands

import (
	"errors"
	"testing"

	"github.com/stretchr/testify/assert"
	"github.com/stretchr/testify/require"

	"github.com/grafana/grafana/pkg/cmd/grafana-cli/comm
    
func TestValidateLsCommand_override(t *testing.T) {
	expected := errors.New("dummy error")
	t.Run("override validateLsCommand", func(t *testing.T) {
		var org = validateLsCommand

		t.Cleanup(func() {
			validateLsCommand = org
		})

		c, err := commandstest.NewCliContext(map[string]string{"path": "/var/lib/grafana/plugins"})
		require.NoError(t, err)

		validateLsCommand = func(pluginDir string) error {
			return expected
		}

		err = lsCommand(c)
		assert.Error(t, err)
		assert.Equal(t, expected, err, "can override validateLsCommand")
	})

	// meta-test for test cleanup of global variable
	t.Run("validateLsCommand reset after test", func(t *testing.T) {
		c, err := commandstest.NewCliContext(map[string]string{"path": "/var/lib/grafana/plugins"})
		require.NoError(t, err)

		err = lsCommand(c)
		assert.NotEqual(t, err, expected, "validateLsCommand is reset")
	})
}