INNER CODE UNIT · Go
TestDriverSeeMatchesDburl
xo/usql · driverdoc_test.go:29
func TestDriverSeeMatchesDburl(t *testing.T) {
t.Parallel()
schemes := schemeIndex()
var checked int
for _, tag := range driverTags(t) {
scheme, ok := schemes[tag]
if !ok {
t.Errorf("driver %s has no dburl scheme.\n"+
"Every driver needs one, because gen.go reads the driver's\n"+
"package, description and URL from it.", tag)
continue
}
see, ok := driverSee(t, tag)
if !ok {
t.Errorf("driver %s has no See: line in its package comment.\n"+
"It should read: See: %s", tag, scheme.DriverURL)
continue
}