mirror of
https://github.com/foomo/posh-providers.git
synced 2026-12-05 20:21:52 +00:00
25 lines
656 B
Go
25 lines
656 B
Go
package sqlc_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
testingx "github.com/foomo/go/testing"
|
|
tagx "github.com/foomo/go/testing/tag"
|
|
"github.com/foomo/posh-providers/pkg/testutils"
|
|
"github.com/foomo/posh-providers/sqlc-dev/sqlc"
|
|
"github.com/foomo/posh/pkg/cache"
|
|
"github.com/foomo/posh/pkg/log"
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestCommandDocs(t *testing.T) {
|
|
testingx.Tags(t, tagx.Short)
|
|
|
|
// Not parallel: NewCommand reads its config through viper, which is a singleton.
|
|
cmd, err := sqlc.NewCommand(log.NewFmt(), &cache.MemoryCache{})
|
|
require.NoError(t, err)
|
|
|
|
testutils.AssertDescribed(t, "sqlc", cmd)
|
|
testutils.AssertSkilled(t, "sqlc", cmd)
|
|
}
|