MCPcopy
hub / github.com/sqlc-dev/sqlc / TestInvalidConfig

Function TestInvalidConfig

internal/config/config_test.go:79–91  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

77}
78
79func TestInvalidConfig(t *testing.T) {
80 err := Validate(&Config{
81 SQL: []SQL{{
82 Database: &Database{
83 URI: "",
84 Managed: false,
85 },
86 }},
87 })
88 if err == nil {
89 t.Errorf("expected err; got nil")
90 }
91}

Callers

nothing calls this directly

Calls 1

ValidateFunction · 0.85

Tested by

no test coverage detected